Skip to content

Commit e1511a1

Browse files
committed
fix: Don't complain about network connection if it's a local source entry
1 parent 77ea031 commit e1511a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ class MangaDetailsPresenter(
499499

500500
/** Refresh Manga Info and Chapter List (not tracking) */
501501
fun refreshAll() {
502-
if (view?.isNotOnline() == true && !manga.isLocal()) return
502+
val isLocal by lazy { manga.isLocal() }
503+
if (view?.isNotOnline(!isLocal) == true && !isLocal) return
503504
presenterScope.launch {
504505
isLoading = true
505506
val tasks = listOf(

0 commit comments

Comments
 (0)