Fix notification and add visual cues when triggering a second update (#7783)

This commit is contained in:
stevenyomi
2022-08-18 21:01:10 +08:00
committed by GitHub
parent 80b4b7bee6
commit 1f34f5277c
6 changed files with 21 additions and 21 deletions

View File

@@ -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) },