Add new prefs to the storage

This commit is contained in:
Ximi1970
2024-04-15 22:00:54 +02:00
parent ed025c379c
commit a5fd4b635f
7 changed files with 170 additions and 100 deletions

View File

@@ -629,6 +629,8 @@ SysTrayX.Messaging = {
"minimizeIconType",
"closeType",
"startupType",
"windowPosCor",
"windowPosCorType",
"restorePositions",
"defaultIconType",
"defaultIconMime",
@@ -667,6 +669,8 @@ SysTrayX.Messaging = {
const minimizeIconType = result.minimizeIconType || "1";
const closeType = result.closeType || "1";
const startupType = result.startupType || "0";
const windowPosCor = result.windowPosCor || "false";
const windowPosCorType = result.windowPosCorType || "0";
const restorePositions = result.restorePositions || "false";
const defaultIconType = result.defaultIconType || "0";
const defaultIconMime = result.defaultIconMime || "image/png";
@@ -706,6 +710,8 @@ SysTrayX.Messaging = {
minimizeIconType,
closeType,
startupType,
windowPosCor,
windowPosCorType,
restorePositions,
defaultIconType,
defaultIconMime,
@@ -825,6 +831,20 @@ SysTrayX.Link = {
});
}
const windowPosCor = response["preferences"].windowPosCor;
if (windowPosCor) {
await storage().set({
windowPosCor: windowPosCor,
});
}
const windowPosCorType = response["preferences"].windowPosCorType;
if (windowPosCorType) {
await storage().set({
windowPosCorType: windowPosCorType,
});
}
const restorePositions = response["preferences"].restorePositions;
if (restorePositions) {
await storage().set({