Add Copilot suggested change

https://github.com/kodjodevf/mangayomi/pull/714#discussion_r3144115131
This commit is contained in:
NBA2K1 2026-04-26 23:33:14 +02:00
parent 262fb44792
commit 64d22741a5

View file

@ -33,13 +33,13 @@ mixin ChapterControllerMixin {
// (which is more efficient since incognito status never changes mid-session).
bool get incognitoMode => isar.settings.getSync(227)!.incognitoMode!;
bool get hasNextChapter => getChapterIndex().$1 != 0;
bool get hasPreviousChapter {
bool get hasNextChapter {
final idx = getChapterIndex();
return idx.$1 + 1 != getChaptersLength(idx.$2);
return idx.$1 < getChaptersLength(idx.$2) - 1;
}
bool get hasPreviousChapter => getChapterIndex().$1 > 0;
Settings getIsarSetting() => isar.settings.getSync(227)!;
String getMangaName() => getManga().name!;