mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-16 01:40:35 -06:00
undo attributes
This commit is contained in:
parent
2d3e43b998
commit
2a4474676c
@ -3197,7 +3197,6 @@
|
|||||||
"Content": "Dark Theme for Windows",
|
"Content": "Dark Theme for Windows",
|
||||||
"Description": "Enable/Disable Dark Mode.",
|
"Description": "Enable/Disable Dark Mode.",
|
||||||
"category": "Customize Preferences",
|
"category": "Customize Preferences",
|
||||||
"attributes": "epRestart",
|
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Order": "a100_",
|
"Order": "a100_",
|
||||||
"Type": "Toggle"
|
"Type": "Toggle"
|
||||||
@ -3230,7 +3229,6 @@
|
|||||||
"Content": "Snap Window",
|
"Content": "Snap Window",
|
||||||
"Description": "If enabled you can align windows by dragging them. | Relogin Required",
|
"Description": "If enabled you can align windows by dragging them. | Relogin Required",
|
||||||
"category": "Customize Preferences",
|
"category": "Customize Preferences",
|
||||||
"attributes": "epRestart",
|
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Order": "a104_",
|
"Order": "a104_",
|
||||||
"Type": "Toggle"
|
"Type": "Toggle"
|
||||||
@ -3239,7 +3237,6 @@
|
|||||||
"Content": "Snap Assist Flyout",
|
"Content": "Snap Assist Flyout",
|
||||||
"Description": "If enabled then Snap preview is disabled when maximize button is hovered.",
|
"Description": "If enabled then Snap preview is disabled when maximize button is hovered.",
|
||||||
"category": "Customize Preferences",
|
"category": "Customize Preferences",
|
||||||
"attributes": "epRestart",
|
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Order": "a105_",
|
"Order": "a105_",
|
||||||
"Type": "Toggle"
|
"Type": "Toggle"
|
||||||
@ -3248,7 +3245,6 @@
|
|||||||
"Content": "Snap Assist Suggestion",
|
"Content": "Snap Assist Suggestion",
|
||||||
"Description": "If enabled then you will get suggestions to snap other applications in the left over spaces.",
|
"Description": "If enabled then you will get suggestions to snap other applications in the left over spaces.",
|
||||||
"category": "Customize Preferences",
|
"category": "Customize Preferences",
|
||||||
"attributes": "epRestart",
|
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Order": "a106_",
|
"Order": "a106_",
|
||||||
"Type": "Toggle"
|
"Type": "Toggle"
|
||||||
|
@ -16,7 +16,9 @@ function Invoke-WinUtilSnapFlyout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
|
$Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
|
||||||
|
taskkill.exe /F /IM "explorer.exe"
|
||||||
Set-ItemProperty -Path $Path -Name EnableSnapAssistFlyout -Value $value
|
Set-ItemProperty -Path $Path -Name EnableSnapAssistFlyout -Value $value
|
||||||
|
Start-Process "explorer.exe"
|
||||||
} catch [System.Security.SecurityException] {
|
} catch [System.Security.SecurityException] {
|
||||||
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
|
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
|
||||||
} catch [System.Management.Automation.ItemNotFoundException] {
|
} catch [System.Management.Automation.ItemNotFoundException] {
|
||||||
|
@ -16,7 +16,9 @@ function Invoke-WinUtilSnapSuggestion {
|
|||||||
}
|
}
|
||||||
# taskkill.exe /F /IM "explorer.exe"
|
# taskkill.exe /F /IM "explorer.exe"
|
||||||
$Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
|
$Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
|
||||||
|
taskkill.exe /F /IM "explorer.exe"
|
||||||
Set-ItemProperty -Path $Path -Name SnapAssist -Value $value
|
Set-ItemProperty -Path $Path -Name SnapAssist -Value $value
|
||||||
|
Start-Process "explorer.exe"
|
||||||
} catch [System.Security.SecurityException] {
|
} catch [System.Security.SecurityException] {
|
||||||
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
|
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
|
||||||
} catch [System.Management.Automation.ItemNotFoundException] {
|
} catch [System.Management.Automation.ItemNotFoundException] {
|
||||||
|
@ -36,8 +36,4 @@ function Invoke-WPFToggle {
|
|||||||
"WPFToggleTaskbarAlignment" {Invoke-WinUtilTaskbarAlignment $ToggleStatus}
|
"WPFToggleTaskbarAlignment" {Invoke-WinUtilTaskbarAlignment $ToggleStatus}
|
||||||
"WPFToggleDetailedBSoD" {Invoke-WinUtilDetailedBSoD $ToggleStatus}
|
"WPFToggleDetailedBSoD" {Invoke-WinUtilDetailedBSoD $ToggleStatus}
|
||||||
}
|
}
|
||||||
if ($sync.configs.tweaks.$($button).attributes -contains "epRestart") {
|
|
||||||
taskkill.exe /F /IM "explorer.exe"
|
|
||||||
Start-Process "explorer.exe"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user