mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-23 03:58:56 -04:00
Merge pull request #182 from kiwix/stackexchange-category
Fix stack exchange category filter
This commit is contained in:
commit
20f732a811
@ -209,7 +209,7 @@ ContentManagerSide::ContentManagerSide(QWidget *parent) :
|
||||
"Other",
|
||||
"Phet",
|
||||
"Psiram",
|
||||
"Stack_exchange",
|
||||
"Stack Exchange",
|
||||
"Ted",
|
||||
"Vikidia",
|
||||
"Wikibooks",
|
||||
@ -260,6 +260,9 @@ void ContentManagerSide::setContentManager(ContentManager *contentManager)
|
||||
auto item = mp_categorySelector->selectedItems().at(0);
|
||||
if (!item) return;
|
||||
auto category = item->text();
|
||||
if (category == "Stack Exchange") {
|
||||
category = "Stackexchange";
|
||||
}
|
||||
mp_contentManager->setCurrentCategoryFilter(category);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user