Skip to content

Commit

Permalink
Remove old version category session data on startup
Browse files Browse the repository at this point in the history
Saved category pairs seperated by '|' is from old version
  • Loading branch information
ShaopengLin committed Aug 31, 2024
1 parent 2af64e2 commit 78e9f92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/settingsmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,11 @@ void SettingsManager::initSettings()
m_langList = m_settings.value("language", defaultLangVariant).toList();

m_categoryList = m_settings.value("category", {}).toStringList();

/* Porting with older version: category pairs seperated with "|"
are removed to avoid user confusion.
*/
setCategory(m_categoryList.filter(QRegularExpression(R"(^[^|]*$)")));

m_contentTypeList = m_settings.value("contentType", {}).toList();
}

0 comments on commit 78e9f92

Please sign in to comment.