From 19f808a9cb226b0b353b9a82ea788ade4c3c778d Mon Sep 17 00:00:00 2001 From: Eugene Date: Sat, 9 Dec 2023 15:32:34 -0800 Subject: [PATCH 1/2] fix window toggling when hidden --- GETOOLS_SOURCE/modules/GeneralWindow.py | 9 ++++++--- changelog.txt | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/GETOOLS_SOURCE/modules/GeneralWindow.py b/GETOOLS_SOURCE/modules/GeneralWindow.py index bf40564..e9ccccb 100644 --- a/GETOOLS_SOURCE/modules/GeneralWindow.py +++ b/GETOOLS_SOURCE/modules/GeneralWindow.py @@ -195,6 +195,8 @@ def FramesCollapse(self, value, *args): # TODO collapse function for sub frames cmds.frameLayout(self.frameExperimental, edit = True, collapse = value) # DOCKING + def DockCheckVisible(self, *args): + return cmds.dockControl(Settings.dockName, query = True, visible = True) def DockCheck(self, *args): return cmds.dockControl(Settings.dockName, query = True, exists = True) def DockDelete(self, *args): @@ -225,9 +227,10 @@ def RUN_DOCKED(self, path = "", forced = False, *args): self.directory = path if (forced == False and self.DockCheck()): # for script toggling. Comment these 3 lines if you need to deactivate toggling - self.DockDelete() - print("{0} closed".format(GeneralWindow.title)) - return + if (self.DockCheckVisible()): + self.DockDelete() + print("{0} closed".format(GeneralWindow.title)) + return self.DockDelete() self.WindowCreate() diff --git a/changelog.txt b/changelog.txt index 92754d9..36f8d3d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,9 @@ Backlog: - in progress | [RIGGING] added constraint offset object - in progress | [RIGGING] added Aim Constraint logic +v0.0.12 +- [UI] fixed window toggling when hidden + v0.0.11 - [UI] moved Select Transform Hierarchy button to Utils menu and remove SELECT category in TOOLS module - [UI] changed window width, margins and spacing between ui elements From 3a04b4a5db58e7f97c20c33a5df44dee0563fe23 Mon Sep 17 00:00:00 2001 From: Eugene Date: Sat, 9 Dec 2023 15:37:31 -0800 Subject: [PATCH 2/2] revert changelog --- changelog.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 36f8d3d..92754d9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,9 +4,6 @@ Backlog: - in progress | [RIGGING] added constraint offset object - in progress | [RIGGING] added Aim Constraint logic -v0.0.12 -- [UI] fixed window toggling when hidden - v0.0.11 - [UI] moved Select Transform Hierarchy button to Utils menu and remove SELECT category in TOOLS module - [UI] changed window width, margins and spacing between ui elements