Perf/professional hardening (#4)
* Improve background refresh and process detection * Harden affinity and power plan automation * Fix passive process refresh failures * Improve UX terminology and process layout * Polish UX layout and empty states * Expand core service test coverage
This commit is contained in:
@@ -20,6 +20,17 @@ namespace ThreadPilot.Models
|
||||
using System.Diagnostics;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
public enum ProcessClassification
|
||||
{
|
||||
ForegroundApp,
|
||||
VisibleWindowApp,
|
||||
BackgroundUser,
|
||||
System,
|
||||
ProtectedOrAccessDenied,
|
||||
Terminated,
|
||||
Unknown,
|
||||
}
|
||||
|
||||
public partial class ProcessModel : ObservableObject
|
||||
{
|
||||
[ObservableProperty]
|
||||
@@ -52,6 +63,12 @@ namespace ThreadPilot.Models
|
||||
[ObservableProperty]
|
||||
private bool hasVisibleWindow;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool isForeground;
|
||||
|
||||
[ObservableProperty]
|
||||
private ProcessClassification classification = ProcessClassification.Unknown;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool isIdleServerDisabled;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user