diff --git a/config/tweaks.json b/config/tweaks.json index 74083300..fcd0f307 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -3197,7 +3197,6 @@ "Content": "Dark Theme for Windows", "Description": "Enable/Disable Dark Mode.", "category": "Customize Preferences", - "attributes": "epRestart", "panel": "2", "Order": "a100_", "Type": "Toggle" @@ -3230,7 +3229,6 @@ "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" @@ -3239,7 +3237,6 @@ "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" @@ -3248,7 +3245,6 @@ "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" diff --git a/functions/private/Invoke-WinUtilSnapFlyout.ps1 b/functions/private/Invoke-WinUtilSnapFlyout.ps1 index c420e42a..39d1335b 100644 --- a/functions/private/Invoke-WinUtilSnapFlyout.ps1 +++ b/functions/private/Invoke-WinUtilSnapFlyout.ps1 @@ -16,7 +16,9 @@ function Invoke-WinUtilSnapFlyout { } $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" + taskkill.exe /F /IM "explorer.exe" Set-ItemProperty -Path $Path -Name EnableSnapAssistFlyout -Value $value + Start-Process "explorer.exe" } catch [System.Security.SecurityException] { Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception" } catch [System.Management.Automation.ItemNotFoundException] { diff --git a/functions/private/Invoke-WinUtilSnapSuggestion.ps1 b/functions/private/Invoke-WinUtilSnapSuggestion.ps1 index 048392b0..f2358c73 100644 --- a/functions/private/Invoke-WinUtilSnapSuggestion.ps1 +++ b/functions/private/Invoke-WinUtilSnapSuggestion.ps1 @@ -16,7 +16,9 @@ function Invoke-WinUtilSnapSuggestion { } # taskkill.exe /F /IM "explorer.exe" $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" + taskkill.exe /F /IM "explorer.exe" Set-ItemProperty -Path $Path -Name SnapAssist -Value $value + Start-Process "explorer.exe" } catch [System.Security.SecurityException] { Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception" } catch [System.Management.Automation.ItemNotFoundException] { diff --git a/functions/public/Invoke-WPFToggle.ps1 b/functions/public/Invoke-WPFToggle.ps1 index d7334c45..c4fbd105 100644 --- a/functions/public/Invoke-WPFToggle.ps1 +++ b/functions/public/Invoke-WPFToggle.ps1 @@ -36,8 +36,4 @@ function Invoke-WPFToggle { "WPFToggleTaskbarAlignment" {Invoke-WinUtilTaskbarAlignment $ToggleStatus} "WPFToggleDetailedBSoD" {Invoke-WinUtilDetailedBSoD $ToggleStatus} } - if ($sync.configs.tweaks.$($button).attributes -contains "epRestart") { - taskkill.exe /F /IM "explorer.exe" - Start-Process "explorer.exe" - } }