diff --git a/lib/libimhex/source/helpers/utils.cpp b/lib/libimhex/source/helpers/utils.cpp index a05a83743..14e7d43a2 100644 --- a/lib/libimhex/source/helpers/utils.cpp +++ b/lib/libimhex/source/helpers/utils.cpp @@ -276,8 +276,7 @@ namespace hex { } void openWebpage(std::string url) { - - if (url.find("://") == std::string::npos) + if (!url.contains("://")) url = "https://" + url; #if defined(OS_WINDOWS) diff --git a/plugins/builtin/source/content/views/view_hashes.cpp b/plugins/builtin/source/content/views/view_hashes.cpp index 1608e2b65..61b269174 100644 --- a/plugins/builtin/source/content/views/view_hashes.cpp +++ b/plugins/builtin/source/content/views/view_hashes.cpp @@ -219,7 +219,7 @@ namespace hex::plugin::builtin { continue; for (const auto &newHash : hashes) { - if (newHash->getUnlocalizedName() == hash["type"]) { + if (newHash->getUnlocalizedName() == hash["type"].get()) { auto newFunction = newHash->create(hash["name"]); newFunction.getType()->load(hash["settings"]); diff --git a/plugins/windows/source/plugin_windows.cpp b/plugins/windows/source/plugin_windows.cpp index acccd6b80..58ef215e6 100644 --- a/plugins/windows/source/plugin_windows.cpp +++ b/plugins/windows/source/plugin_windows.cpp @@ -22,7 +22,7 @@ namespace hex::plugin::windows { static void detectSystemTheme() { // Setup system theme change detector EventManager::subscribe([] { - bool themeFollowSystem = ContentRegistry::Settings::getSetting("hex.builtin.setting.interface", "hex.builtin.setting.interface.color") == api::ThemeManager::NativeTheme; + bool themeFollowSystem = ContentRegistry::Settings::getSetting("hex.builtin.setting.interface", "hex.builtin.setting.interface.color").get() == api::ThemeManager::NativeTheme; if (!themeFollowSystem) return; @@ -43,7 +43,7 @@ static void detectSystemTheme() { }); EventManager::subscribe([=] { - bool themeFollowSystem = ContentRegistry::Settings::getSetting("hex.builtin.setting.interface", "hex.builtin.setting.interface.color") == api::ThemeManager::NativeTheme; + bool themeFollowSystem = ContentRegistry::Settings::getSetting("hex.builtin.setting.interface", "hex.builtin.setting.interface.color").get() == api::ThemeManager::NativeTheme; if (themeFollowSystem) EventManager::post();