Parcourir la source

- fixed issue with not updating the model view on the model used in the Project tab when using the shortcut keys 1, 2, 3 which made the color of the tree element not reflect the change in status

Marius Stanciu il y a 5 ans
Parent
commit
aa8a248f44
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 1 1
      CHANGELOG.md
  2. 3 0
      app_Main.py

+ 1 - 1
CHANGELOG.md

@@ -19,7 +19,7 @@ CHANGELOG for FlatCAM beta
 - modified the shortcut strings and the way the shortcuts were listed in the Shortcut keys list such that it will allow a future Shortcuts Manager
 - updated all the language strings according to the modifications done above
 - fixed a small issue with using the shortcut key for toggling the display of Properties tab
-
+- fixed issue with not updating the model view on the model used in the Project tab when using the shortcut keys 1, 2, 3 which made the color of the tree element not reflect the change in status
 
 25.10.2020
 

+ 3 - 0
app_Main.py

@@ -7606,6 +7606,7 @@ class App(QtCore.QObject):
                 except AttributeError:
                     pass
                 obj.options.set_change_callback(obj.on_options_change)
+        self.collection.update_view()
 
         def worker_task(objs):
             with self.proc_container.new(_("Enabling plots ...")):
@@ -7652,6 +7653,8 @@ class App(QtCore.QObject):
         except Exception as e:
             log.debug("App.disable_plots() --> %s" % str(e))
 
+        self.collection.update_view()
+
         def worker_task(objs):
             with self.proc_container.new(_("Disabling plots ...")):
                 for plot_obj in objs: