Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Jan 9, 2025
1 parent 9b88fcc commit f4a7124
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions los_tools/los_tools_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(self, iface: QgisInterface):

if self.iface is not None:
self.iface.newProjectCreated.connect(self.project_updated)
self.iface.newProjectCreated.connect(self._reset_los_layer)
self.iface.projectRead.connect(self.project_updated)
self.iface.projectRead.connect(self._reset_los_layer)

Expand Down Expand Up @@ -257,6 +258,7 @@ def current_project_visible_raster_layers(self) -> None:

def project_updated(self) -> None:
self.current_project_visible_raster_layers()
self.raster_validations = RasterValidations(iface=self.iface)
project = QgsProject.instance()
project.layersRemoved.connect(self.update_list_of_rasters)

Expand Down

0 comments on commit f4a7124

Please sign in to comment.