mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-29 09:39:03 +03:00
set last used anime source
This commit is contained in:
parent
ad77b6c43a
commit
d2c034dc0d
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue