- 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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user