resolves #8379 by fixing late desktop theme listener setup

This commit is contained in:
Kifungo A
2024-10-14 09:35:19 +02:00
parent cdd314b752
commit 753327f718
+2 -1
View File
@@ -361,6 +361,8 @@ const getApiBaseUrl = (configs) => {
app.on('ready', async () => {
const configs: any = store.get('configs');
const settings: any = store.get('appSetting');
// Set up theme listener for desktop windows
new DesktopThemeListener();
// default global
global.variableGlobal = {
API_BASE_URL: getApiBaseUrl(configs || {}),
@@ -445,7 +447,6 @@ app.on('ready', async () => {
}
removeMainListener();
ipcMainHandler(store, startServer, knex, { ...environment }, timeTrackerWindow);
new DesktopThemeListener();
});
app.on('window-all-closed', () => {