Run Join/Leave commands asynchronously so the UI doesn't lock up on thoise commands
This commit is contained in:
parent
b3dd5c0e3a
commit
73f7088b45
4 changed files with 112 additions and 90 deletions
|
@ -118,7 +118,7 @@ namespace WinUI
|
|||
bool allowGlobal = allowGlobalCheckbox.IsChecked.Value;
|
||||
bool allowManaged = allowManagedCheckbox.IsChecked.Value;
|
||||
|
||||
APIHandler.Instance.JoinNetwork(joinNetworkBox.Text, allowManaged, allowGlobal, allowDefault);
|
||||
APIHandler.Instance.JoinNetwork(this.Dispatcher, joinNetworkBox.Text, allowManaged, allowGlobal, allowDefault);
|
||||
|
||||
Close();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue