1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Put sound/music volume settings in their own settings verison

Fixes migration between 9b8745535b and 50e40888fd. See https://github.com/tobspr/shapez.io/pull/611#issuecomment-684002678
This commit is contained in:
Ryan Liptak 2020-08-31 14:25:12 -07:00
parent 50e40888fd
commit 496130cc90

View File

@ -529,7 +529,7 @@ export class ApplicationSettings extends ReadWriteProxy {
}
getCurrentVersion() {
return 24;
return 25;
}
/** @param {{settings: SettingsStorage, version: number}} data */
@ -633,12 +633,16 @@ export class ApplicationSettings extends ReadWriteProxy {
}
if (data.version < 24) {
data.settings.musicVolume = 1.0;
data.settings.soundVolume = 1.0;
data.settings.refreshRate = "60";
data.version = 24;
}
if (data.version < 25) {
data.settings.musicVolume = 1.0;
data.settings.soundVolume = 1.0;
data.version = 25;
}
return ExplainedResult.good();
}
}