From 3d1c24eb580d6e89aad4e31872e90cac3f986a50 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 20 Jul 2022 17:22:01 +0200 Subject: [PATCH] harbour: Disable add feed button in news add feed dialog until folders are loaded --- packages/harbour/lib/src/apps/news/dialogs/add_feed.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/harbour/lib/src/apps/news/dialogs/add_feed.dart b/packages/harbour/lib/src/apps/news/dialogs/add_feed.dart index 1081b76c..abb945f1 100644 --- a/packages/harbour/lib/src/apps/news/dialogs/add_feed.dart +++ b/packages/harbour/lib/src/apps/news/dialogs/add_feed.dart @@ -85,7 +85,7 @@ class _NewsAddFeedDialogState extends State { ], ], ElevatedButton( - onPressed: submit, + onPressed: foldersData != null ? submit : null, child: Text(AppLocalizations.of(context).newsAddFeed), ), ],