- made sure that when the Measuring Tools is active after last click the Status bar is no longer deleted
This commit is contained in:
parent
574184f44c
commit
328182d863
|
@ -4893,8 +4893,10 @@ class App(QtCore.QObject):
|
|||
try:
|
||||
# select the object(s) only if it is enabled (plotted)
|
||||
if obj.options['plot']:
|
||||
poly_obj = Polygon([(obj.options['xmin'], obj.options['ymin']), (obj.options['xmax'], obj.options['ymin']),
|
||||
(obj.options['xmax'], obj.options['ymax']), (obj.options['xmin'], obj.options['ymax'])])
|
||||
poly_obj = Polygon([(obj.options['xmin'], obj.options['ymin']),
|
||||
(obj.options['xmax'], obj.options['ymin']),
|
||||
(obj.options['xmax'], obj.options['ymax']),
|
||||
(obj.options['xmin'], obj.options['ymax'])])
|
||||
if sel_type is True:
|
||||
if poly_obj.within(poly_selection):
|
||||
# create the selection box around the selected object
|
||||
|
@ -4937,11 +4939,10 @@ class App(QtCore.QObject):
|
|||
|
||||
if self.call_source != 'measurement':
|
||||
self.ui.notebook.setCurrentWidget(self.ui.project_tab)
|
||||
else:
|
||||
self.call_source = 'app'
|
||||
|
||||
# delete any text in the status bar, implicitly the last object name that was selected
|
||||
self.inform.emit("")
|
||||
else:
|
||||
self.call_source = 'app'
|
||||
|
||||
else:
|
||||
# case when there is only an object under the click and we toggle it
|
||||
|
@ -4993,7 +4994,11 @@ class App(QtCore.QObject):
|
|||
else:
|
||||
self.collection.set_all_inactive()
|
||||
self.delete_selection_shape()
|
||||
if self.call_source != 'measurement':
|
||||
# delete any text in the status bar, implicitly the last object name that was selected
|
||||
self.inform.emit("")
|
||||
else:
|
||||
self.call_source = 'app'
|
||||
|
||||
else:
|
||||
# If there is no selected object
|
||||
|
|
|
@ -17,6 +17,7 @@ CAD program, and create G-Code for Isolation routing.
|
|||
- fixed Measuring Tool - after doing a measurement the Notebook was switching to Project Tab without letting the user see the results
|
||||
- more work on the translation engine; the app now restarts after a language is applied
|
||||
- added protection against using Travel Z parameter with negative or zero value (in Geometry).
|
||||
- made sure that when the Measuring Tools is active after last click the Status bar is no longer deleted
|
||||
|
||||
6.03.2019
|
||||
|
||||
|
|
Loading…
Reference in New Issue