Change the filters path to not be hardcoded anymore.

This commit is contained in:
Lukas Brübach 2025-03-07 15:05:31 +01:00
parent a4a6cb1a81
commit e53ccfdbf4
9 changed files with 67 additions and 30 deletions

View file

@ -99,7 +99,7 @@ private:
QByteArray tokenDialogGeometry;
QByteArray setsDialogGeometry;
QString lang;
QString deckPath, replaysPath, picsPath, redirectCachePath, customPicsPath, cardDatabasePath,
QString deckPath, filtersPath, replaysPath, picsPath, redirectCachePath, customPicsPath, cardDatabasePath,
customCardDatabasePath, themesPath, spoilerDatabasePath, tokenDatabasePath, themeName;
bool tabVisualDeckStorageOpen, tabServerOpen, tabAccountOpen, tabDeckStorageOpen, tabReplaysOpen, tabAdminOpen,
tabLogOpen;
@ -227,6 +227,10 @@ public:
{
return deckPath;
}
QString getFiltersPath() const
{
return filtersPath;
}
QString getReplaysPath() const
{
return replaysPath;
@ -740,6 +744,7 @@ public slots:
void setShowTipsOnStartup(bool _showTipsOnStartup);
void setSeenTips(const QList<int> &_seenTips);
void setDeckPath(const QString &_deckPath);
void setFiltersPath(const QString &_filtersPath);
void setReplaysPath(const QString &_replaysPath);
void setThemesPath(const QString &_themesPath);
void setCustomCardDatabasePath(const QString &_customCardDatabasePath);