# HG changeset patch # User Edouard Tisserant # Date 1605867460 -3600 # Node ID 2ec1aebda927a75828be701fd04eab9bb0318e74 # Parent 1f5a5282c41f9c0f1c0cd0e16ee201735fa2ef83 Project tree: avoid flickering and glitches in notebook when selecting some still not opened ConfigTreeNode diff -r 1f5a5282c41f -r 2ec1aebda927 ConfigTreeNode.py --- a/ConfigTreeNode.py Wed Nov 18 23:08:17 2020 +0100 +++ b/ConfigTreeNode.py Fri Nov 20 11:17:40 2020 +0100 @@ -470,15 +470,15 @@ def GetContextualMenuItems(self): return None - def GetView(self): - if self._View is None and self.EditorType is not None: + def GetView(self, onlyopened=False): + if self._View is None and not onlyopened and self.EditorType is not None: app_frame = self.GetCTRoot().AppFrame self._View = self.EditorType(app_frame.TabsOpened, self, app_frame) return self._View def _OpenView(self, name=None, onlyopened=False): - view = self.GetView() + view = self.GetView(onlyopened) if view is not None: if name is None: