diff --git a/webext/background.js b/webext/background.js index 04d887f..c0b47c6 100644 --- a/webext/background.js +++ b/webext/background.js @@ -177,6 +177,8 @@ SysTrayX.Messaging = { }, listenerFolderInfoChanged: function (folder, folderInfo) { + // console.debug("FolderInfoChanged: " + JSON.stringify(folderInfo)); + if (folderInfo.unreadMessageCount !== undefined) { if (SysTrayX.Messaging.unread[folder.accountId] === undefined) { SysTrayX.Messaging.unread[folder.accountId] = {}; @@ -583,7 +585,7 @@ SysTrayX.Link = { } const kdeIntegration = response["kdeIntegration"]; - if (kdeIntegration) { + if (kdeIntegration !== undefined) { await storage().set({ kdeIntegration: kdeIntegration, }); diff --git a/webext/options.js b/webext/options.js index 454857d..2f09858 100644 --- a/webext/options.js +++ b/webext/options.js @@ -1182,6 +1182,10 @@ async function start() { document.getElementById("counttype").style.display = "none"; } + if (SysTrayX.Info.platformInfo.os !== "linux") { + document.getElementById("kdeintegration").style.display = "none"; + } + // Setup account tree const accountsInitPromise = () => new Promise((res) => res(SysTrayX.Accounts.init()));