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

@ -29,4 +29,14 @@ void RecentsSettings::updateRecentlyOpenedDeckPaths(const QString &deckPath)
setValue(deckPaths, "deckpaths", "deckbuilder");
emit recentlyOpenedDeckPathsChanged();
}
QString RecentsSettings::getLatestDeckDirPath()
{
return getValue("latestDeckDir", "dirs").toString();
}
void RecentsSettings::setLatestDeckDirPath(const QString &dirPath)
{
setValue(dirPath, "latestDeckDir", "dirs");
}