mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 16:44:48 -07:00
Disable saving of decks when the deck is empty (#3384)
* Disable saving of decks when the deck is empty * Replace tabs with spaces to conform with coding conventions * Remove whitespace at end of line to satisfy the CI robot overlords * Improve logic to check if deck is empty, fix functionality when a deck is loaded * Fix code style issues * Disable more menus when the deck is empty * Streamline code for disabling save menus when the deck is empty * Fix save-disabling when loading a deck from the clipboard * Enable saving deck directly after loading deck
This commit is contained in:
parent
70005a6f1d
commit
eb4b1e74f1
2 changed files with 28 additions and 2 deletions
|
|
@ -95,6 +95,7 @@ private slots:
|
|||
void dockFloatingTriggered();
|
||||
void dockTopLevelChanged(bool topLevel);
|
||||
void saveDbHeaderState();
|
||||
void setSaveStatus(bool newStatus);
|
||||
|
||||
private:
|
||||
CardInfoPtr currentCardInfo() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue