Update last loaded timestamp in decklist file and then restore original last modified timestamp if a user requests a deck load.

This commit is contained in:
Lukas Brübach 2025-01-06 11:08:15 +01:00
parent 132159c7f6
commit f5dcf522f1
8 changed files with 82 additions and 12 deletions

View file

@ -307,7 +307,7 @@ void DeckViewContainer::replaceDeckStorageWithDeckView(QMouseEvent *event, DeckP
QString deckString;
DeckLoader deck;
bool error = !deck.loadFromFile(fileName, fmt);
bool error = !deck.loadFromFile(fileName, fmt, true);
if (!error) {
deckString = deck.writeToString_Native();
error = deckString.length() > MAX_FILE_LENGTH;
@ -357,7 +357,7 @@ void DeckViewContainer::loadDeckFromFile(const QString &filePath)
QString deckString;
DeckLoader deck;
bool error = !deck.loadFromFile(filePath, fmt);
bool error = !deck.loadFromFile(filePath, fmt, true);
if (!error) {
deckString = deck.writeToString_Native();
error = deckString.length() > MAX_FILE_LENGTH;