mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Potential fix for #31
This commit is contained in:
parent
06c8a70e42
commit
6da41400fb
@ -112,6 +112,10 @@ namespace Artemis.Models
|
||||
|
||||
private void ChangeEffect(EffectModel effectModel)
|
||||
{
|
||||
// Can't set a new effect if ActiveKeyboard is null
|
||||
if (ActiveKeyboard == null)
|
||||
return;
|
||||
|
||||
if (effectModel is OverlayModel)
|
||||
throw new ArgumentException("Can't set an Overlay effect as the active effect");
|
||||
|
||||
@ -160,6 +164,11 @@ namespace Artemis.Models
|
||||
if (Suspended)
|
||||
{
|
||||
LoadLastKeyboard();
|
||||
|
||||
// Don't resume if no keyboard was found
|
||||
if (ActiveKeyboard == null)
|
||||
return;
|
||||
|
||||
Suspended = false;
|
||||
General.Default.Suspended = false;
|
||||
General.Default.Save();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user