- made sure that clicking the icons in the status bar works only for the left mouse click

- if clicking the activity icon in the status bar and there is no object selected then the effect will be a plot_all with fit_view
- modified the FCLabel GUI element
This commit is contained in:
Marius Stanciu
2020-06-14 00:59:24 +03:00
committed by Marius
parent e4aafdba9b
commit 6db5def032
3 changed files with 26 additions and 5 deletions

View File

@@ -5778,9 +5778,13 @@ class App(QtCore.QObject):
self.log.debug("on_toolbar_replot()")
try:
self.collection.get_active().read_form()
except AttributeError:
self.log.debug("on_toolbar_replot(): AttributeError")
obj = self.collection.get_active()
if obj:
obj.read_form()
else:
self.on_zoom_fit()
except AttributeError as e:
log.debug("on_toolbar_replot() -> %s" % str(e))
pass
self.plot_all()