mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-18 16:37:55 +00:00
GUI/gamelist: add "None" as an option for second row and remove dynamically duplicate row options (#3309)
* GUI/gamelist: add "None" as an option for second row and remove duplicated row options * fix clang-format warnings
This commit is contained in:
parent
6b8406f575
commit
ca9353c81c
3 changed files with 53 additions and 14 deletions
|
@ -108,11 +108,14 @@ public:
|
|||
}};
|
||||
|
||||
const auto& row1 = row_data.at(UISettings::values.row_1_text_id);
|
||||
const auto& row2 = row_data.at(UISettings::values.row_2_text_id);
|
||||
const int row2_id = UISettings::values.row_2_text_id;
|
||||
|
||||
if (row1.isEmpty() || row1 == row2)
|
||||
return row2;
|
||||
if (row2.isEmpty())
|
||||
if (row2_id == 4) // None
|
||||
return row1;
|
||||
|
||||
const auto& row2 = row_data.at(row2_id);
|
||||
|
||||
if (row1 == row2)
|
||||
return row1;
|
||||
|
||||
return QString(row1 + QStringLiteral("\n ") + row2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue