|
|
|
@ -146,6 +146,7 @@ export const allApplicationSettings = [
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// GAME
|
|
|
|
|
new BoolSetting("offerHints", categoryGame, (app, value) => {}),
|
|
|
|
|
|
|
|
|
|
new EnumSetting("theme", {
|
|
|
|
|
options: Object.keys(THEMES),
|
|
|
|
@ -197,7 +198,7 @@ export const allApplicationSettings = [
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
new BoolSetting("alwaysMultiplace", categoryGame, (app, value) => {}),
|
|
|
|
|
new BoolSetting("offerHints", categoryGame, (app, value) => {}),
|
|
|
|
|
new BoolSetting("enableTunnelSmartplace", categoryGame, (app, value) => {}),
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export function getApplicationSettingById(id) {
|
|
|
|
@ -219,6 +220,7 @@ class SettingsStorage {
|
|
|
|
|
|
|
|
|
|
this.alwaysMultiplace = false;
|
|
|
|
|
this.offerHints = true;
|
|
|
|
|
this.enableTunnelSmartplace = true;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @type {Object.<string, number>}
|
|
|
|
@ -408,7 +410,7 @@ export class ApplicationSettings extends ReadWriteProxy {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getCurrentVersion() {
|
|
|
|
|
return 10;
|
|
|
|
|
return 11;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** @param {{settings: SettingsStorage, version: number}} data */
|
|
|
|
@ -445,6 +447,11 @@ export class ApplicationSettings extends ReadWriteProxy {
|
|
|
|
|
data.version = 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (data.version < 11) {
|
|
|
|
|
data.settings.enableTunnelSmartplace = true;
|
|
|
|
|
data.version = 11;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ExplainedResult.good();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|