mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-01-28 18:09:03 +01:00
Add new prefs to the storage
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user