ui: fixed theme not changing on startup (#474)
This commit is contained in:
parent
89fe063b02
commit
ab5966fa9d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user