Merge pull request #251 from yxxyun/fix

fix wrong behaviour on menu button
This commit is contained in:
Moustapha Kodjo Amadou 2024-09-04 10:49:19 +01:00 committed by GitHub
commit df30a554df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1790,13 +1790,10 @@ class _LibraryScreenState extends ConsumerState<LibraryScreen>
mangaM: randomManga,
source: randomManga.source!);
});
}
if (value == 2) {
} else if (value == 2) {
_importLocal(context, widget.isManga);
} else {
if (!widget.isManga) {
addTorrent(context);
}
} else if (value == 3 && !widget.isManga){
addTorrent(context);
}
}),
],