Skip to content

A full-featured download manager.

fix: code error

Dr_rOot45a23d73e6c4
diff --git a/src/main/Application.js b/src/main/Application.js
index b924419c..cc099290 100644
--- a/src/main/Application.js
+++ b/src/main/Application.js
@@ -387,8 +387,8 @@ export default class Application extends EventEmitter {
initThemeManager () {
this.themeManager = new ThemeManager()
- this.trayManager.changeIconTheme(theme)
this.themeManager.on('system-theme-change', (theme) => {
+ this.trayManager.changeIconTheme(theme)
this.sendCommandToAll('application:update-system-theme', theme)
})
}
diff --git a/src/main/ui/ThemeManager.js b/src/main/ui/ThemeManager.js
index 0e27e4d2..ac92f7d6 100644
--- a/src/main/ui/ThemeManager.js
+++ b/src/main/ui/ThemeManager.js
@@ -29,7 +29,6 @@ export default class ThemeManager extends EventEmitter {
}
nativeTheme.on('updated', () => {
- this.updateAppAppearance(theme)
const theme = getSystemTheme()
this.systemTheme = theme
console.log('nativeTheme updated===>', theme)