1
0
mirror of synced 2024-11-25 00:00:27 +01:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);