mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 06:01:49 +01:00
Fix Global Search ignoring incognito mode when setting last used source. (#6374)
This commit is contained in:
parent
7eed8c440c
commit
d022bf2673
@ -209,7 +209,9 @@ open class GlobalSearchController(
|
|||||||
* Opens a catalogue with the given search.
|
* Opens a catalogue with the given search.
|
||||||
*/
|
*/
|
||||||
override fun onTitleClick(source: CatalogueSource) {
|
override fun onTitleClick(source: CatalogueSource) {
|
||||||
presenter.preferences.lastUsedSource().set(source.id)
|
if (!preferences.incognitoMode().get()) {
|
||||||
|
preferences.lastUsedSource().set(source.id)
|
||||||
|
}
|
||||||
router.pushController(BrowseSourceController(source, presenter.query).withFadeTransaction())
|
router.pushController(BrowseSourceController(source, presenter.query).withFadeTransaction())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user