mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
Made some tweaks to game shutdown detection
This commit is contained in:
parent
268a1a8e50
commit
698cca1212
@ -22,7 +22,7 @@ namespace Artemis.KeyboardProviders.Logitech
|
||||
Width = 21;
|
||||
KeyboardRegions = new List<KeyboardRegion>
|
||||
{
|
||||
new KeyboardRegion("TopRow", new Point(0, 0), new Point(16, 0)),
|
||||
new KeyboardRegion("TopRow", new Point(0, 0), new Point(18, 0)),
|
||||
new KeyboardRegion("NumPad", new Point(17, 1), new Point(21, 6)),
|
||||
new KeyboardRegion("QWER", new Point(2, 2), new Point(5, 2))
|
||||
};
|
||||
|
||||
@ -281,7 +281,7 @@ namespace Artemis.Managers
|
||||
// If the currently active effect is a no longer running game, get rid of it.
|
||||
var activeGame = EffectManager.ActiveEffect as GameModel;
|
||||
if (activeGame != null)
|
||||
if (runningProcesses.All(p => p.ProcessName != activeGame.ProcessName))
|
||||
if (!runningProcesses.Any(p => p.ProcessName == activeGame.ProcessName && p.HasExited == false))
|
||||
EffectManager.DisableGame(activeGame);
|
||||
|
||||
// Look for running games, stopping on the first one that's found.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user