mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-05-07 11:06:34 +02:00
Fix kdeintegration
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user