Prepare ThreadPilot 1.7.0 gaming and signing release (#51)
This commit is contained in:
@@ -32,10 +32,11 @@ namespace ThreadPilot.ViewModels
|
||||
private readonly IAffinityApplyService affinityApplyService;
|
||||
private readonly IProcessAffinityApplyCoordinator processAffinityApplyCoordinator;
|
||||
private readonly IProcessMemoryPriorityService? memoryPriorityService;
|
||||
private readonly ProcessPowerRequestService? powerRequestService;
|
||||
private readonly IProcessRuleCreationService? processRuleCreationService;
|
||||
private readonly IApplicationSettingsService? settingsService;
|
||||
private readonly IPersistentProcessRuleStore? persistentRuleStore;
|
||||
private readonly IPersistentProcessRuleMatcher? persistentRuleMatcher;
|
||||
private readonly IApplicationSettingsService? settingsService;
|
||||
private readonly IPersistentProcessRuleStore? persistentRuleStore;
|
||||
private readonly IPersistentProcessRuleMatcher? persistentRuleMatcher;
|
||||
private readonly Action<string> clipboardSetter;
|
||||
private readonly Action<string> executableLocationOpener;
|
||||
private System.Timers.Timer? refreshTimer;
|
||||
@@ -47,9 +48,9 @@ namespace ThreadPilot.ViewModels
|
||||
private readonly ThrottledRefreshCoordinator filterRefreshCoordinator;
|
||||
private bool isApplyingFilter;
|
||||
private bool filterRefreshPending;
|
||||
private bool suppressCoreSelectionEvents;
|
||||
private bool suppressCpuAssignmentModeChanges;
|
||||
private bool cpuAssignmentModeOverriddenByRule;
|
||||
private bool suppressCoreSelectionEvents;
|
||||
private bool suppressCpuAssignmentModeChanges;
|
||||
private bool cpuAssignmentModeOverriddenByRule;
|
||||
|
||||
[ObservableProperty]
|
||||
private bool isAutomationMonitoringEnabled = true;
|
||||
@@ -105,10 +106,10 @@ namespace ThreadPilot.ViewModels
|
||||
private string topologyStatus = "Detecting CPU topology...";
|
||||
|
||||
[ObservableProperty]
|
||||
private bool areAdvancedFeaturesAvailable = false;
|
||||
|
||||
[ObservableProperty]
|
||||
private CpuAssignmentMode selectedCpuAssignmentMode = CpuAssignmentMode.Automatic;
|
||||
private bool areAdvancedFeaturesAvailable = false;
|
||||
|
||||
[ObservableProperty]
|
||||
private CpuAssignmentMode selectedCpuAssignmentMode = CpuAssignmentMode.Automatic;
|
||||
|
||||
[ObservableProperty]
|
||||
private PowerPlanModel? selectedPowerPlan;
|
||||
@@ -194,7 +195,8 @@ namespace ThreadPilot.ViewModels
|
||||
Action<string>? clipboardSetter = null,
|
||||
Action<string>? executableLocationOpener = null,
|
||||
ILocalizationService? localizationService = null,
|
||||
IApplicationSettingsService? settingsService = null)
|
||||
IApplicationSettingsService? settingsService = null,
|
||||
ProcessPowerRequestService? powerRequestService = null)
|
||||
: base(logger, enhancedLoggingService, activityAuditService)
|
||||
{
|
||||
this.processService = processService ?? throw new ArgumentNullException(nameof(processService));
|
||||
@@ -217,10 +219,11 @@ namespace ThreadPilot.ViewModels
|
||||
new CpuSelectionMigrationService(),
|
||||
NullLogger<ProcessAffinityApplyCoordinator>.Instance);
|
||||
this.memoryPriorityService = memoryPriorityService;
|
||||
this.settingsService = settingsService;
|
||||
this.persistentRuleStore = persistentRuleStore;
|
||||
this.persistentRuleMatcher = persistentRuleMatcher;
|
||||
this.SelectedCpuAssignmentMode = settingsService?.Settings.DefaultCpuAssignmentMode ?? CpuAssignmentMode.Automatic;
|
||||
this.powerRequestService = powerRequestService;
|
||||
this.settingsService = settingsService;
|
||||
this.persistentRuleStore = persistentRuleStore;
|
||||
this.persistentRuleMatcher = persistentRuleMatcher;
|
||||
this.SelectedCpuAssignmentMode = settingsService?.Settings.DefaultCpuAssignmentMode ?? CpuAssignmentMode.Automatic;
|
||||
this.IsAutomationMonitoringEnabled = settingsService?.Settings.EnableAutomationMonitoring ?? true;
|
||||
if (settingsService != null)
|
||||
{
|
||||
@@ -265,11 +268,11 @@ namespace ThreadPilot.ViewModels
|
||||
|
||||
private void OnSettingsChanged(object? sender, ApplicationSettingsChangedEventArgs e)
|
||||
{
|
||||
this.IsAutomationMonitoringEnabled = e.NewSettings.EnableAutomationMonitoring;
|
||||
if (!this.cpuAssignmentModeOverriddenByRule)
|
||||
{
|
||||
this.SetCpuAssignmentMode(e.NewSettings.DefaultCpuAssignmentMode, overriddenByRule: false);
|
||||
}
|
||||
this.IsAutomationMonitoringEnabled = e.NewSettings.EnableAutomationMonitoring;
|
||||
if (!this.cpuAssignmentModeOverriddenByRule)
|
||||
{
|
||||
this.SetCpuAssignmentMode(e.NewSettings.DefaultCpuAssignmentMode, overriddenByRule: false);
|
||||
}
|
||||
if (!this.IsAutomationMonitoringEnabled)
|
||||
{
|
||||
this.SetUiRefreshEnabled(false, refreshImmediately: false);
|
||||
|
||||
Reference in New Issue
Block a user