Skip to content

Commit

Permalink
fix: Do not prompt downloads dialog if there are no ongoing downloads (
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Jan 7, 2024
2 parents f283c5c + 428e97f commit 9b14b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class _UnityAppState extends State<UnityApp>
final context = navigatorKey.currentContext!;
if (isPreventClose && mounted && context.mounted) {
final downloadsManager = context.read<DownloadsManager>();
if (downloadsManager.downloading.isNotEmpty || true) {
if (downloadsManager.downloading.isNotEmpty) {
final result = await showDialog<bool>(
context: context,
barrierDismissible: false,
Expand Down

0 comments on commit 9b14b48

Please sign in to comment.