mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 19:28:43 +12:00
GUI: Hotfix for Boot Recent (#2847)
* fix recent list check for empty name only change list enabled at aboutToShow only AddRecentGame if Boot succeeded * use stringpairlist instead of two stringlists fix weird typo line * fix travis
This commit is contained in:
parent
e5e95a31f1
commit
d2518caf2e
6 changed files with 119 additions and 86 deletions
|
@ -27,6 +27,8 @@ typedef struct GUI_SAVE
|
|||
};
|
||||
|
||||
typedef std::map<const QString, const QSize> icon_size;
|
||||
typedef QPair<QString, QString> q_string_pair;
|
||||
typedef QList<q_string_pair> q_pair_list;
|
||||
|
||||
namespace GUI
|
||||
{
|
||||
|
@ -45,9 +47,8 @@ namespace GUI
|
|||
const QString logger = "Logger";
|
||||
const QString meta = "Meta";
|
||||
|
||||
const GUI_SAVE rg_freeze = GUI_SAVE(main_window, "recentGamesFrozen", false);
|
||||
const GUI_SAVE rg_names = GUI_SAVE(main_window, "recentGamesNames", QStringList());
|
||||
const GUI_SAVE rg_paths = GUI_SAVE(main_window, "recentGamesPaths", QStringList());
|
||||
const GUI_SAVE rg_freeze = GUI_SAVE(main_window, "recentGamesFrozen", false);
|
||||
const GUI_SAVE rg_entries = GUI_SAVE(main_window, "recentGamesNames", QVariant::fromValue(q_pair_list()));
|
||||
|
||||
const GUI_SAVE ib_pkg_success = GUI_SAVE( main_window, "infoBoxEnabledInstallPKG", true );
|
||||
const GUI_SAVE ib_pup_success = GUI_SAVE( main_window, "infoBoxEnabledInstallPUP", true );
|
||||
|
@ -105,6 +106,8 @@ public:
|
|||
|
||||
bool GetCategoryVisibility(QString cat);
|
||||
QVariant GetValue(const GUI_SAVE& entry);
|
||||
QVariant List2Var(const q_pair_list& list);
|
||||
q_pair_list Var2List(const QVariant &var);
|
||||
|
||||
void ShowInfoBox(const GUI_SAVE& entry, const QString& title, const QString& text, QWidget* parent = 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue