mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 17:25:32 +00:00
Only on wifi (+ ethernet)
Allows a download to be done while being on ethernet when "Only on wifi" option is enabled. #415 + typo
This commit is contained in:
parent
f443065113
commit
ccb5fb08e6
2 changed files with 2 additions and 2 deletions
|
|
@ -338,7 +338,7 @@
|
|||
"weekly": "Weekly",
|
||||
"restore_backup_warning_title": "Restoring a backup will overwrite all existing data.\n\nContinue restoring?",
|
||||
"services": "Services",
|
||||
"tracking_warning_info": "One-way sync yo update the chapter progress in tracking services. Set up tracking for individual entries from their tracking button.",
|
||||
"tracking_warning_info": "One-way sync to update the chapter progress in tracking services. Set up tracking for individual entries from their tracking button.",
|
||||
"use_page_tap_zones": "Use page tap zones",
|
||||
"manage_trackers": "Manage trackers",
|
||||
"restore": "Restore",
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ Future<void> downloadChapter(
|
|||
}) async {
|
||||
bool onlyOnWifi = useWifi ?? ref.watch(onlyOnWifiStateProvider);
|
||||
final connectivity = await Connectivity().checkConnectivity();
|
||||
final isOnWifi = connectivity.contains(ConnectivityResult.wifi);
|
||||
final isOnWifi = connectivity.contains(ConnectivityResult.wifi) || connectivity.contains(ConnectivityResult.ethernet);
|
||||
if (onlyOnWifi && !isOnWifi) {
|
||||
botToast(navigatorKey.currentContext!.l10n.downloads_are_limited_to_wifi);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue