Fix wrong query being used when opening Global Search (#7604)

(cherry picked from commit 76057b84b2d9ae01ad553a720aadb8114732dfab)
This commit is contained in:
Andreas 2022-07-24 21:06:18 +02:00 committed by Jobobby04
parent 4b03d3559f
commit 87d7a47b8e

View File

@ -87,7 +87,7 @@ class LibraryController(
presenter = presenter, presenter = presenter,
onMangaClicked = ::openManga, onMangaClicked = ::openManga,
onGlobalSearchClicked = { onGlobalSearchClicked = {
router.pushController(GlobalSearchController(presenter.query)) router.pushController(GlobalSearchController(presenter.searchQuery))
}, },
onChangeCategoryClicked = ::showMangaCategoriesDialog, onChangeCategoryClicked = ::showMangaCategoriesDialog,
onMarkAsReadClicked = { markReadStatus(true) }, onMarkAsReadClicked = { markReadStatus(true) },