enhance toggle logics

- cleanup Invoke-WPFToggle.ps1
- add attributes member to tweaks
- add "eprestart" for restart explorer to attributes.
- removed restart explorer logics from existing toggles.
- add restart explorer logics to Invoke-WPFToggle.ps1 depending on attribute content
This commit is contained in:
MyDrift
2024-08-06 12:32:56 +02:00
parent 49100e1dd6
commit facaf8612a
4 changed files with 27 additions and 21 deletions

View File

@ -3052,6 +3052,7 @@
"Content": "Dark Theme for Windows",
"Description": "Enable/Disable Dark Mode.",
"category": "Customize Preferences",
"attributes": "epRestart",
"panel": "2",
"Order": "a100_",
"Type": "Toggle"
@ -3084,6 +3085,7 @@
"Content": "Snap Window",
"Description": "If enabled you can align windows by dragging them. | Relogin Required",
"category": "Customize Preferences",
"attributes": "epRestart",
"panel": "2",
"Order": "a104_",
"Type": "Toggle"
@ -3092,6 +3094,7 @@
"Content": "Snap Assist Flyout",
"Description": "If enabled then Snap preview is disabled when maximize button is hovered.",
"category": "Customize Preferences",
"attributes": "epRestart",
"panel": "2",
"Order": "a105_",
"Type": "Toggle"
@ -3100,6 +3103,7 @@
"Content": "Snap Assist Suggestion",
"Description": "If enabled then you will get suggestions to snap other applications in the left over spaces.",
"category": "Customize Preferences",
"attributes": "epRestart",
"panel": "2",
"Order": "a106_",
"Type": "Toggle"