fix: More P2468R2 issues
This commit is contained in:
parent
b1edede53a
commit
22ff033b5e
@ -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)
|
||||
|
@ -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<std::string>()) {
|
||||
|
||||
auto newFunction = newHash->create(hash["name"]);
|
||||
newFunction.getType()->load(hash["settings"]);
|
||||
|
@ -22,7 +22,7 @@ namespace hex::plugin::windows {
|
||||
static void detectSystemTheme() {
|
||||
// Setup system theme change detector
|
||||
EventManager::subscribe<EventOSThemeChanged>([] {
|
||||
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<std::string>() == api::ThemeManager::NativeTheme;
|
||||
if (!themeFollowSystem)
|
||||
return;
|
||||
|
||||
@ -43,7 +43,7 @@ static void detectSystemTheme() {
|
||||
});
|
||||
|
||||
EventManager::subscribe<EventWindowInitialized>([=] {
|
||||
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<std::string>() == api::ThemeManager::NativeTheme;
|
||||
|
||||
if (themeFollowSystem)
|
||||
EventManager::post<EventOSThemeChanged>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user