Skip to content

Commit

Permalink
Allow creation of empty maps (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored Jun 9, 2024
1 parent 044f933 commit babe00f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions felt/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit babe00f

Please sign in to comment.