fix wrong behaviour on menu button

This commit is contained in:
yxxyun 2024-08-31 14:21:57 +08:00 committed by GitHub
parent 28b3f8b0a5
commit c12b3c3c9c
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);
}
}),
],