1
0
mirror of synced 2024-11-28 17:40:51 +01:00

fix: Invalid json comparison

This commit is contained in:
WerWolv 2023-02-02 20:54:38 +01:00
parent 3877f0853d
commit b1edede53a

View File

@ -162,7 +162,7 @@ namespace hex::plugin::builtin {
static int selection = [&]() -> int {
u16 index = 0;
for (auto &[languageCode, languageName] : languages) {
if (languageCode == setting)
if (setting.get<std::string>() == languageCode)
return index;
index++;
}