Fix kdeintegration

This commit is contained in:
Ximi1970
2021-09-13 20:54:46 +02:00
parent c4bb443bab
commit 7a52603590
2 changed files with 7 additions and 1 deletions

View File

@@ -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,
});

View File

@@ -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()));