Browse Source
qstring label
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3016/head
crueter
1 month ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with
4 additions and
2 deletions
-
src/Eden/Interface/SettingsInterface.cpp
|
|
|
@ -24,14 +24,16 @@ SettingsModel *SettingsInterface::category(SettingsCategories::Category category |
|
|
|
|
|
|
|
QList<QMLSetting *> settingsList; |
|
|
|
for (Settings::BasicSetting *setting : settings) { |
|
|
|
const QString qlabel = QString::fromStdString(setting->GetLabel()); |
|
|
|
|
|
|
|
// paired settings get ignored
|
|
|
|
if (setting->Specialization() == Settings::Specialization::Paired) { |
|
|
|
LOG_DEBUG(Frontend, "\"{}\" has specialization Paired: ignoring", setting->GetLabel()); |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
if ((idInclude.empty() || idInclude.contains(setting->GetLabel())) |
|
|
|
&& (idExclude.empty() || !idExclude.contains(setting->GetLabel()))) { |
|
|
|
if ((idInclude.empty() || idInclude.contains(qlabel)) |
|
|
|
&& (idExclude.empty() || !idExclude.contains(qlabel))) { |
|
|
|
settingsList.append(this->getSetting(setting)); |
|
|
|
} |
|
|
|
} |
|
|
|
|