temporarily force update dark theme (banano coin icon fix)

This commit is contained in:
julian 2023-07-01 15:15:22 -06:00
parent 011ba6bf61
commit 1b66cc23c3

View file

@ -157,20 +157,22 @@ class ThemeService {
); );
} else { } else {
// check installed version // check installed version
final theme = ThemeService.instance.getTheme(themeId: "dark"); // final theme = ThemeService.instance.getTheme(themeId: "dark");
if ((theme?.version ?? 1) < _currentDefaultThemeVersion) { // Force update theme to add missing icons for now
Logging.instance.log( // TODO: uncomment if statement in future when themes are version 4 or above
"Updating default dark theme...", // if ((theme?.version ?? 1) < _currentDefaultThemeVersion) {
level: LogLevel.Info, Logging.instance.log(
); "Updating default dark theme...",
final darkZip = await rootBundle.load("assets/default_themes/dark.zip"); level: LogLevel.Info,
await ThemeService.instance );
.install(themeArchiveData: darkZip.buffer.asUint8List()); final darkZip = await rootBundle.load("assets/default_themes/dark.zip");
Logging.instance.log( await ThemeService.instance
"Updating default dark theme... finished", .install(themeArchiveData: darkZip.buffer.asUint8List());
level: LogLevel.Info, Logging.instance.log(
); "Updating default dark theme... finished",
} level: LogLevel.Info,
);
// }
} }
} }