mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
Fixed a bug where the program would get stuck trying to connect to an unconnected keyboard
This commit is contained in:
parent
160476ee13
commit
7cb80f7234
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user