- the HUD display state is now persistent between app restarts

This commit is contained in:
Marius Stanciu
2020-05-13 00:08:56 +03:00
committed by Marius
parent ce9b18f9ed
commit 7ec3fa73af
3 changed files with 10 additions and 0 deletions

View File

@@ -320,9 +320,14 @@ class PlotCanvasLegacy(QtCore.QObject):
if state:
self.hud_enabled = True
self.text_hud.add_artist()
self.app.defaults['global_hud'] = True
else:
self.hud_enabled = False
self.text_hud.remove_artist()
self.app.defaults['global_hud'] = False
self.canvas.draw()
class Thud(QtCore.QObject):