✅ make function sleep without freezing ui avalonia
- My first issue is that in my
ReturnUsermodel, I can't figure out what to return in theif/else ifclauses. - My second issue is that when i click the Exit button, it's almost immediate. It takes a second or two and then the window closes, but then if I just leave username and password blank and click login, it takes nearly 6 seconds to figure whatever it needs to out and then it displays that the login was successful ...
- which leads into #3 before #1 became an issue, I did have it to where the else clause was outside of the if statment and not in an else clause so that the code would execute if the check systems didn't fail, however, I think there was a problem with my check system. This is a link to the copy of the code that comes before #1 being an issue https://pastebin.com/jsb8nsqA
MainWindowViewModel.cs (for reference): https://pastebin.com/R8e77kDa