mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-12 20:19:05 +01:00
Fix notification and add visual cues when triggering a second update (#7783)
This commit is contained in:
@@ -57,9 +57,9 @@ class LibraryController(
|
||||
onDeleteClicked = ::showDeleteMangaDialog,
|
||||
onClickFilter = ::showSettingsSheet,
|
||||
onClickRefresh = {
|
||||
if (LibraryUpdateService.start(context, it)) {
|
||||
context.toast(R.string.updating_library)
|
||||
}
|
||||
val started = LibraryUpdateService.start(context, it)
|
||||
context.toast(if (started) R.string.updating_library else R.string.update_already_running)
|
||||
started
|
||||
},
|
||||
onClickInvertSelection = { presenter.invertSelection(presenter.activeCategory) },
|
||||
onClickSelectAll = { presenter.selectAll(presenter.activeCategory) },
|
||||
|
||||
Reference in New Issue
Block a user