add "open recent" menu option to deck editor tab (#5319)

* add "open recent" menu option to deck editor tab

* change texts

* also get it to work with loading from deck storage tab

* add error message when fail to open

* only update recents on successful open

* only update recents on successful open

* reword to "Clear"
This commit is contained in:
RickyRister 2024-12-24 16:55:04 -08:00 committed by GitHub
parent e7585271fb
commit 4ca1fc083d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 130 additions and 5 deletions

View file

@ -7,6 +7,7 @@
#include "game_filters_settings.h"
#include "layouts_settings.h"
#include "message_settings.h"
#include "recents_settings.h"
#include "servers_settings.h"
#include "shortcuts_settings.h"
@ -82,6 +83,7 @@ private:
GameFiltersSettings *gameFiltersSettings;
LayoutsSettings *layoutsSettings;
DownloadSettings *downloadSettings;
RecentsSettings *recentsSettings;
QByteArray mainWindowGeometry;
QByteArray tokenDialogGeometry;
@ -598,6 +600,10 @@ public:
{
return *downloadSettings;
}
RecentsSettings &recents() const
{
return *recentsSettings;
}
bool getIsPortableBuild() const
{
return isPortableBuild;