Skip to content

Commit

Permalink
Merge pull request #63 from kartoza/develop
Browse files Browse the repository at this point in the history
Fix for refreshing layers on every icon selected
  • Loading branch information
mazano authored Apr 23, 2018
2 parents 1c4e460 + 36e17a6 commit 02812b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ def manage_beacons(self):
self.set_database_connection()
if self.database is None:
return
self.refresh_layers()
BeaconManager(self.iface, self.database, self.required_layers)
validate_plugin_actions(self, self.database)
self.iface.mapCanvas().refresh()
Expand All @@ -360,7 +359,6 @@ def manage_parcels(self):
self.set_database_connection()
if self.database is None:
return
self.refresh_layers()
ParcelManager(self.iface, self.database, self.required_layers)
validate_plugin_actions(self, self.database)
self.iface.mapCanvas().refresh()
Expand All @@ -384,7 +382,6 @@ def manage_bearing_distance(self):
("No Beacons available in the table. "
"Please use Beacon Manager tool to create a Beacon."))
else:
self.refresh_layers()
BearDistManager(self.iface, self.database, self.required_layers)

self.iface.mapCanvas().refresh()
Expand All @@ -397,6 +394,7 @@ def manage_database_connection(self):
crs = database_manager.get_current_crs()
if connection:
self.set_database_connection(connection=connection, crs=crs)
self.refresh_layers()
validate_plugin_actions(self, self.database)


Expand Down

0 comments on commit 02812b5

Please sign in to comment.