From 0f1b95c2f8e0988915389a0ffc3d660b00701d64 Mon Sep 17 00:00:00 2001 From: ge59dil Date: Wed, 24 Jan 2024 21:49:19 +0100 Subject: [PATCH] download func --- lib/view_models/download_view_model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/view_models/download_view_model.dart b/lib/view_models/download_view_model.dart index 3c4f0d08..f88bc3fe 100644 --- a/lib/view_models/download_view_model.dart +++ b/lib/view_models/download_view_model.dart @@ -44,7 +44,7 @@ class DownloadViewModel extends StateNotifier { // Check if 'Download Over Wi-Fi Only' is enabled and if not connected to Wi-Fi - if (downloadOverWifiOnly == (await isConnectedToWifi())) { + if (downloadOverWifiOnly == !(await isConnectedToWifi())) { _logger.w('Not connected to Wi-Fi. Download cancelled.'); throw Exception('Not connected to Wi-Fi'); }