mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Add the settings version updater to prevent failures when moving up versions.
This commit is contained in:
parent
a4082faea7
commit
0fc6e9ca2c
@ -483,7 +483,7 @@ export class ApplicationSettings extends ReadWriteProxy {
|
||||
}
|
||||
|
||||
getCurrentVersion() {
|
||||
return 18;
|
||||
return 19;
|
||||
}
|
||||
|
||||
/** @param {{settings: SettingsStorage, version: number}} data */
|
||||
@ -561,6 +561,11 @@ export class ApplicationSettings extends ReadWriteProxy {
|
||||
data.version = 18;
|
||||
}
|
||||
|
||||
if (data.version < 19) {
|
||||
data.settings.middleMousePan = false;
|
||||
data.version = 19;
|
||||
}
|
||||
|
||||
return ExplainedResult.good();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user