mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Fixed a bug where the program would get stuck trying to connect to an unconnected keyboard
This commit is contained in:
1 parent
160476ee13
commit
7cb80f7234
2 files changed
+5
-3
No files matched your search
@@ -52,6 +52,8 @@ namespace Artemis.Managers
|
||||
if (!keyboardProvider.CanEnable())
|
||||
{
|
||||
_mainManager.DialogService.ShowErrorMessageBox(keyboardProvider.CantEnableText);
|
||||
General.Default.LastKeyboard = null;
|
||||
General.Default.Save();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -126,9 +126,9 @@ namespace Artemis.ViewModels.Flyouts
|
||||
|
||||
protected override void HandleOpen()
|
||||
{
|
||||
SelectedKeyboardProvider = General.Default.LastKeyboard.Length > 0
|
||||
? General.Default.LastKeyboard
|
||||
: "None";
|
||||
SelectedKeyboardProvider = string.IsNullOrEmpty(General.Default.LastKeyboard)
|
||||
? "None"
|
||||
: General.Default.LastKeyboard;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user