mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-07-09 03:49:52 +02:00
Settings UX: enable toggle, Load/Refresh button, greyed-out Apply
- Add master toggle to enable/disable Python scripts feature entirely (IsPythonScriptsEnabled in settings model, ViewModel, and runtime) - Button shows 'Load scripts' initially, changes to 'Refresh scripts' after first load - Edit dialog 'Apply changes' button is greyed out until a field changes (tracks initial snapshot vs current values for all fields) - Runtime BuildPythonScriptFormats respects IsPythonScriptsEnabled Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,9 @@ namespace Microsoft.PowerToys.Settings.UI.Library;
|
||||
|
||||
public sealed class AdvancedPastePythonScriptSettings
|
||||
{
|
||||
[JsonPropertyName("isEnabled")]
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
[JsonPropertyName("scriptsFolder")]
|
||||
public string ScriptsFolder { get; set; } = string.Empty;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user