mirror of
https://github.com/gabrielkheisa/auto_dark_light_windows.git
synced 2025-04-27 16:39:02 +07:00
extend the explorer.exe relaunch interval
This commit is contained in:
parent
b02568fbea
commit
da93884565
2
main.go
2
main.go
@ -30,7 +30,7 @@ func setMode(light bool) {
|
|||||||
// Restart Explorer to fully apply theme
|
// Restart Explorer to fully apply theme
|
||||||
func restartExplorer() {
|
func restartExplorer() {
|
||||||
exec.Command("taskkill", "/f", "/im", "explorer.exe").Run()
|
exec.Command("taskkill", "/f", "/im", "explorer.exe").Run()
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
exec.Command("explorer.exe").Start()
|
exec.Command("explorer.exe").Start()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user