mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-05-23 07:32:18 +00:00
Add Copilot suggested change
https://github.com/kodjodevf/mangayomi/pull/714#discussion_r3144115131
This commit is contained in:
parent
262fb44792
commit
64d22741a5
1 changed files with 4 additions and 4 deletions
|
|
@ -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!;
|
||||
|
|
|
|||
Loading…
Reference in a new issue