Remember last opened directory when loading decks (#5418)

* remember last directory when loading deck

* move shared code into new dlg class
This commit is contained in:
RickyRister 2025-01-05 14:40:20 -08:00 committed by GitHub
parent 9c38c9ed1b
commit 93fab3d78f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 61 additions and 6 deletions

View file

@ -0,0 +1,21 @@
#ifndef DLG_LOAD_DECK_H
#define DLG_LOAD_DECK_H
#include <QFileDialog>
/**
* The file dialog for "Load Deck" operations.
* Handles remembering the most recently used deck loading directory.
*/
class DlgLoadDeck : public QFileDialog
{
Q_OBJECT
void actAccepted();
public:
explicit DlgLoadDeck(QWidget *parent = nullptr);
};
#endif // DLG_LOAD_DECK_H