From 6476eacc4bd16a72a8646df66e33ea9a38501434 Mon Sep 17 00:00:00 2001 From: Xander Frangos <33106561+xanderfrangos@users.noreply.github.com> Date: Sun, 24 Nov 2024 16:57:51 -0500 Subject: [PATCH] Fix Mica effect not showing unless already set to Win11/enabled --- src/electron.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/electron.js b/src/electron.js index 39b38ba6..220ca620 100644 --- a/src/electron.js +++ b/src/electron.js @@ -808,7 +808,10 @@ function processSettings(newSettings = {}, sendUpdate = true) { if (newSettings.useAcrylic !== undefined) { lastTheme["UseAcrylic"] = newSettings.useAcrylic sendToAllWindows('theme-settings', lastTheme) - sendMicaWallpaper() + if(newSettings.useAcrylic) { + currentWallpaperTime = false + sendMicaWallpaper() + } doRestartPanel = true } @@ -4465,8 +4468,7 @@ ipcMain.on('mica-wallpaper-same', (event, data) => { }) async function sendMicaWallpaper() { - // Skip if Win10 or Mica disabled - if (!settings?.useAcrylic || !settings?.isWin11 || !mainWindow) return false; + if (!mainWindow) return false; checkMicaWallpaper() }