mirror of
https://github.com/Ximi1970/systray-x.git
synced 2025-11-10 07:16:12 +01:00
Fix menu crash
This commit is contained in:
@@ -146,6 +146,26 @@ async function getMinimizeOnClose() {
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// Get KDE integration, default icon hide
|
||||
//
|
||||
async function getHideDefaultIcon() {
|
||||
function getHideDefaultIconPref(result) {
|
||||
const hideDefaultIcon = result.hideDefaultIcon || "false";
|
||||
return hideDefaultIcon === "true";
|
||||
}
|
||||
|
||||
function onHideDefaultIconPrefError() {
|
||||
return false;
|
||||
}
|
||||
|
||||
const getState = browser.storage.sync.get("hideDefaultIcon");
|
||||
return await getState.then(
|
||||
getHideDefaultIconPref,
|
||||
onHideDefaultIconPrefError
|
||||
);
|
||||
}
|
||||
|
||||
// Check if the filters are for existing accounts
|
||||
function checkAccountFilters(filters) {
|
||||
let filtersChanged = false;
|
||||
|
||||
Reference in New Issue
Block a user