set last used anime source

This commit is contained in:
jmir1 2022-05-31 03:28:00 +02:00
parent ad77b6c43a
commit d2c034dc0d
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ class AnimeSourcesController : SearchableComposeController<AnimeSourcesPresenter
*/
private fun openSource(source: AnimeSource, controller: BrowseAnimeSourceController) {
if (!preferences.incognitoMode().get()) {
preferences.lastUsedSource().set(source.id)
preferences.lastUsedAnimeSource().set(source.id)
}
parentController!!.router.pushController(controller)
}

View file

@ -144,7 +144,7 @@ class AnimeSearchController(
}
override fun onTitleClick(source: AnimeCatalogueSource) {
presenter.preferences.lastUsedSource().set(source.id)
presenter.preferences.lastUsedAnimeSource().set(source.id)
router.pushController(AnimeSourceSearchController(anime, source, presenter.query))
}