1
0

Remove redundant theme change event emission in main.js

This commit is contained in:
Victor Giers
2025-12-12 11:33:42 +01:00
parent 5474bfe44a
commit 37f12638b8

View File

@@ -2199,7 +2199,6 @@ function buildTrayMenu() {
store.set('skymode', theme === 'sky'); store.set('skymode', theme === 'sky');
BrowserWindow.getAllWindows().forEach(win => { BrowserWindow.getAllWindows().forEach(win => {
win.webContents.send('theme-changed', theme); win.webContents.send('theme-changed', theme);
win.webContents.send('skymode-changed', theme === 'sky');
}); });
}); });
// Legacy SkyMode handlers // Legacy SkyMode handlers
@@ -2209,7 +2208,6 @@ function buildTrayMenu() {
store.set('theme', theme); store.set('theme', theme);
store.set('skymode', !!val); store.set('skymode', !!val);
BrowserWindow.getAllWindows().forEach(win => { BrowserWindow.getAllWindows().forEach(win => {
win.webContents.send('theme-changed', theme);
win.webContents.send('skymode-changed', !!val); win.webContents.send('skymode-changed', !!val);
}); });
}); });