mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 11:38:49 -07:00
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:
parent
9c38c9ed1b
commit
93fab3d78f
7 changed files with 61 additions and 6 deletions
21
cockatrice/src/dialogs/dlg_load_deck.h
Normal file
21
cockatrice/src/dialogs/dlg_load_deck.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue