extend the explorer.exe relaunch interval

This commit is contained in:
gabrielkheisa 2025-04-23 21:32:27 +07:00
parent b02568fbea
commit da93884565

View File

@ -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()
} }