From df95eccc5e8ef62ad9c83a925adc83926491dfb3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 17 Aug 2021 14:55:10 +0200 Subject: AniList: separate anime and manga searches to different tabs --- src/QuickMedia.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/QuickMedia.cpp') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 79f6d51..6be7dab 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1214,7 +1214,8 @@ namespace QuickMedia { body->set_items(std::move(body_items)); tabs.push_back(Tab{std::move(body), std::make_unique(this), create_search_bar("Search...", SEARCH_DELAY_FILTER)}); } else if(strcmp(plugin_name, "anilist") == 0) { - tabs.push_back(Tab{create_body(), std::make_unique(this), create_search_bar("Search...", 300)}); + tabs.push_back(Tab{create_body(), std::make_unique(this, AniListMediaType::ANIME), create_search_bar("Search...", 300)}); + tabs.push_back(Tab{create_body(), std::make_unique(this, AniListMediaType::MANGA), create_search_bar("Search...", 300)}); } else if(strcmp(plugin_name, "file-manager") == 0) { auto file_manager_page = std::make_unique(this, fm_mime_type, file_selection_handler); if(!file_manager_page->set_current_directory(file_manager_start_dir)) -- cgit v1.2.3