mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
fix: Properly save achievements in web version
This commit is contained in:
@@ -30,7 +30,14 @@ namespace hex::plugin::builtin {
|
||||
});
|
||||
|
||||
// Load settings
|
||||
m_showPopup = ContentRegistry::Settings::read<bool>("hex.builtin.setting.interface", "hex.builtin.setting.interface.achievement_popup", true);
|
||||
{
|
||||
bool defaultValue = true;
|
||||
#if defined(OS_WEB)
|
||||
defaultValue = false;
|
||||
#endif
|
||||
|
||||
m_showPopup = ContentRegistry::Settings::read<bool>("hex.builtin.setting.interface", "hex.builtin.setting.interface.achievement_popup", defaultValue);
|
||||
}
|
||||
}
|
||||
|
||||
ViewAchievements::~ViewAchievements() {
|
||||
|
||||
Reference in New Issue
Block a user