Fix option handling

This commit is contained in:
Ximi1970
2023-11-02 19:51:55 +01:00
parent 9be64d2dc4
commit 1f7d3d2255

View File

@@ -578,6 +578,7 @@ SysTrayX.Messaging = {
"showNewIndicator",
"countType",
"startupDelay",
"apiCountMethod",
"numberColor",
"numberSize",
"numberAlignment",
@@ -614,6 +615,7 @@ SysTrayX.Messaging = {
const showNewIndicator = result.showNewIndicator || "false";
const countType = result.countType || "0";
const startupDelay = result.startupDelay || "5";
const apiCountMethod = result.apiCountMethod || "false";
let numberColor = result.numberColor || "#000000";
const numberSize = result.numberSize || "10";
const numberAlignment = result.numberAlignment || "4";
@@ -651,6 +653,7 @@ SysTrayX.Messaging = {
showNewIndicator,
countType,
startupDelay,
apiCountMethod,
numberColor,
numberSize,
numberAlignment,
@@ -852,6 +855,13 @@ SysTrayX.Link = {
});
}
const apiCountMethod = response["preferences"].apiCountMethod;
if (apiCountMethod !== undefined) {
await storage().set({
apiCountMethod: apiCountMethod,
});
}
const numberColor = response["preferences"].numberColor;
if (numberColor) {
await storage().set({