mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-24 04:32:15 -04:00
Merge pull request #1191 from kiwix/Issue#972-category-translation-porting
Remove old version category session data on startup
This commit is contained in:
commit
6fee1ebabc
@ -186,5 +186,13 @@ void SettingsManager::initSettings()
|
||||
m_langList = m_settings.value("language", defaultLangVariant).toList();
|
||||
|
||||
m_categoryList = m_settings.value("category", {}).toStringList();
|
||||
|
||||
/* Older versions used to save both the category identifier/code and its
|
||||
* name as shown to the user (separated by the | symbol). Now we store only
|
||||
* the category identifier from which the name is generated after loading.
|
||||
* In order to avoid user confusion we drop entries stored in the old format
|
||||
*/
|
||||
setCategory(m_categoryList.filter(QRegularExpression(R"(^[^|]*$)")));
|
||||
|
||||
m_contentTypeList = m_settings.value("contentType", {}).toList();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user