Theme: Don't update on startup of every new version
This commit is contained in:
parent
d72c816af9
commit
ba043c422b
1 changed files with 8 additions and 11 deletions
|
@ -652,9 +652,6 @@ export async function startApp(): Promise<void> {
|
||||||
window.storage.remove('remoteBuildExpiration');
|
window.storage.remove('remoteBuildExpiration');
|
||||||
}
|
}
|
||||||
|
|
||||||
const themeSetting = window.Events.getThemeSetting();
|
|
||||||
const newThemeSetting = mapOldThemeToNew(themeSetting);
|
|
||||||
|
|
||||||
if (window.isBeforeVersion(lastVersion, 'v1.29.2-beta.1')) {
|
if (window.isBeforeVersion(lastVersion, 'v1.29.2-beta.1')) {
|
||||||
// Stickers flags
|
// Stickers flags
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
|
@ -671,14 +668,14 @@ export async function startApp(): Promise<void> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
const themeSetting = window.Events.getThemeSetting();
|
||||||
window.isBeforeVersion(lastVersion, 'v1.25.0') &&
|
const newThemeSetting = mapOldThemeToNew(themeSetting);
|
||||||
window.platform === 'darwin' &&
|
if (window.isBeforeVersion(lastVersion, 'v1.25.0')) {
|
||||||
newThemeSetting === window.systemTheme
|
if (newThemeSetting === window.systemTheme) {
|
||||||
) {
|
window.Events.setThemeSetting('system');
|
||||||
window.Events.setThemeSetting('system');
|
} else {
|
||||||
} else {
|
window.Events.setThemeSetting(newThemeSetting);
|
||||||
window.Events.setThemeSetting(newThemeSetting);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue