Skip to content

Commit

Permalink
download func
Browse files Browse the repository at this point in the history
  • Loading branch information
ge59dil committed Jan 24, 2024
1 parent 6d1fb73 commit 0f1b95c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view_models/download_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DownloadViewModel extends StateNotifier<DownloadState> {


// 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');
}
Expand Down

0 comments on commit 0f1b95c

Please sign in to comment.