- in Distance Plugin made sure that the grid snapping restore is working properly (previously it always restored it to the ON state)

- the HUD display is no longer default active on new installations
This commit is contained in:
Marius Stanciu
2022-03-30 12:32:08 +03:00
committed by Marius
parent c69f9dc2d9
commit 40ba41264e
3 changed files with 6 additions and 6 deletions

View File

@@ -184,8 +184,7 @@ class Distance(AppTool):
self.app.ui.grid_snap_btn.trigger()
self.app.ui.grid_snap_btn.trigger()
if self.app.ui.grid_snap_btn.isChecked():
self.grid_status_memory = True
self.grid_status_memory = True if self.app.ui.grid_snap_btn.isChecked() else False
# initial view of the layout
self.initial_view()
@@ -337,8 +336,7 @@ class Distance(AppTool):
self.app.plotcanvas.cursor_color = self.cursor_color_memory
# restore the grid status
if (self.app.ui.grid_snap_btn.isChecked() and self.grid_status_memory is False) or \
(not self.app.ui.grid_snap_btn.isChecked() and self.grid_status_memory is True):
if self.app.ui.grid_snap_btn.isChecked() != self.grid_status_memory:
self.app.ui.grid_snap_btn.trigger()
if self.tool_done is False: