ui: fixed theme not changing on startup (#474)

This commit is contained in:
Lukas Cone
2022-03-18 17:01:39 +01:00
committed by GitHub
parent 89fe063b02
commit ab5966fa9d

View File

@@ -290,7 +290,7 @@ namespace hex::plugin::builtin {
auto theme = ContentRegistry::Settings::getSetting("hex.builtin.setting.interface", "hex.builtin.setting.interface.color");
if (theme.is_number()) {
static int lastTheme = theme.get<int>();
static int lastTheme = 0;
if (const int thisTheme = theme.get<int>(); thisTheme != lastTheme) {
EventManager::post<RequestChangeTheme>(thisTheme);