Skip to content

Commit

Permalink
prepare on creation
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Oct 15, 2024
1 parent 0db688f commit bc678e5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions los_tools/gui/dialog_raster_validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def __init__(self, iface=None) -> None:

self.init_gui()

self._prepare()

def init_gui(self):
self.setMinimumWidth(600)
self.setWindowTitle("Rasters Validation and Sampling")
Expand Down Expand Up @@ -152,16 +154,17 @@ def _default_tools(self) -> None:
self._prev_map_tool = self._canvas.mapTool()
self._prev_cursor = self._canvas.cursor()

def open(self) -> None:
def _prepare(self) -> None:
self._default_tools()
self._populate_raster_view()
self.validate()

def open(self) -> None:
self._prepare()
super().open()

def exec(self) -> int:
self._default_tools()
self._populate_raster_view()
self.validate()
self._prepare()
return super().exec()

def select_sample_point(self) -> None:
Expand Down

0 comments on commit bc678e5

Please sign in to comment.