mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-25 18:47:51 +02:00
Show downloaded only banner in all views
This commit is contained in:
@ -193,10 +193,6 @@ class LibraryController(
|
||||
}
|
||||
}
|
||||
|
||||
if (preferences.downloadedOnly().get()) {
|
||||
binding.downloadedOnly.isVisible = true
|
||||
}
|
||||
|
||||
binding.btnGlobalSearch.clicks()
|
||||
.onEach {
|
||||
router.pushController(
|
||||
|
@ -165,6 +165,10 @@ class MainActivity : BaseActivity<MainActivityBinding>() {
|
||||
preferences.extensionUpdatesCount()
|
||||
.asImmediateFlow { setExtensionsBadge() }
|
||||
.launchIn(scope)
|
||||
|
||||
preferences.downloadedOnly()
|
||||
.asImmediateFlow { binding.downloadedOnly.isVisible = it }
|
||||
.launchIn(scope)
|
||||
}
|
||||
|
||||
override fun onNewIntent(intent: Intent) {
|
||||
|
Reference in New Issue
Block a user