Merge pull request #3316 from dpalou/MOBILE-4074
MOBILE-4074 core: Fix update error if no zoom setting storedmain
commit
8837d6b05a
|
@ -128,7 +128,7 @@ export class CoreUpdateManagerProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected async upgradeFontSizeNames(): Promise<void> {
|
protected async upgradeFontSizeNames(): Promise<void> {
|
||||||
const storedFontSizeName = await CoreConfig.get(CoreConstants.SETTINGS_ZOOM_LEVEL);
|
const storedFontSizeName = await CoreConfig.get<string>(CoreConstants.SETTINGS_ZOOM_LEVEL, CoreZoomLevel.NONE);
|
||||||
switch (storedFontSizeName) {
|
switch (storedFontSizeName) {
|
||||||
case 'low':
|
case 'low':
|
||||||
await CoreConfig.set(CoreConstants.SETTINGS_ZOOM_LEVEL, CoreZoomLevel.NONE);
|
await CoreConfig.set(CoreConstants.SETTINGS_ZOOM_LEVEL, CoreZoomLevel.NONE);
|
||||||
|
|
Loading…
Reference in New Issue