mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 06:15:26 +00:00
PowerControl: Detect RTSS applications inactivity
This commit is contained in:
parent
306c8bd523
commit
12de2267bf
2 changed files with 57 additions and 10 deletions
|
|
@ -68,9 +68,9 @@ namespace PowerControl
|
|||
return;
|
||||
}
|
||||
|
||||
var applications = new RTSS.Applications();
|
||||
RTSS.Applications.Instance.Refresh();
|
||||
|
||||
if (applications.FindForeground(out var processId, out var processName))
|
||||
if (RTSS.Applications.Instance.FindForeground(out var processId, out var processName))
|
||||
{
|
||||
if (!BringUpProcess(processId))
|
||||
AddProcess(processId, processName);
|
||||
|
|
@ -78,7 +78,7 @@ namespace PowerControl
|
|||
|
||||
foreach (var process in watchedProcesses)
|
||||
{
|
||||
if (applications.IsRunning(process.Key))
|
||||
if (RTSS.Applications.Instance.IsRunning(process.Key))
|
||||
continue;
|
||||
RemoveProcess(process.Key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue