From babe00f9432b47685ce35fd896ea61700d49491e Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 10 Jun 2024 09:17:05 +1000 Subject: [PATCH] Allow creation of empty maps (#84) --- felt/plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/felt/plugin.py b/felt/plugin.py index 9391420..e0df5b2 100644 --- a/felt/plugin.py +++ b/felt/plugin.py @@ -257,9 +257,8 @@ def _update_action_enabled_states(self): """ Updates the enabled state of export actions """ - has_layers = bool(QgsProject.instance().mapLayers()) is_authorizing = AUTHORIZATION_MANAGER.status == AuthState.Authorizing - allowed_to_export = has_layers and not is_authorizing + allowed_to_export = not is_authorizing if self.share_map_to_felt_action: self.share_map_to_felt_action.setEnabled(allowed_to_export) if self.create_map_action: