From c0f53de986a767041e4a21c6ae6cdae41151e228 Mon Sep 17 00:00:00 2001 From: gabrielkheisa Date: Fri, 25 Apr 2025 21:43:37 +0700 Subject: [PATCH] disable restart explorer --- README.md | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af8bbb7..672d334 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ You must provide your own `icon.ico` in the same folder — this will be used as - Time check runs every 60 seconds - Changing the clock or timezone will trigger a switch automatically - No admin rights needed -- ⚠️ **Warning:** This program will kill and restart `explorer.exe` to ensure proper theme application after a mode switch. This is necessary because `explorer.exe` can sometimes become buggy and not fully apply the new theme, leaving behind visual artifacts. **Please ensure `explorer.exe` is not performing any sensitive tasks like copying files before a theme switch occurs, as this process will interrupt those operations.** +- ~~⚠️ **Warning:** This program will kill and restart `explorer.exe` to ensure proper theme application after a mode switch. This is necessary because `explorer.exe` can sometimes become buggy and not fully apply the new theme, leaving behind visual artifacts. **Please ensure `explorer.exe` is not performing any sensitive tasks like copying files before a theme switch occurs, as this process will interrupt those operations.**~~ --- ## Optional Ideas diff --git a/main.go b/main.go index 29932e8..565f908 100644 --- a/main.go +++ b/main.go @@ -95,7 +95,7 @@ func backgroundLoop() { if newMode != lastMode { setMode(newMode == "light") - restartExplorer() + // restartExplorer() lastMode = newMode }