Skip to content

Commit f6b7d68

Browse files
committed
fix: Fix "Show Settings After Create New Component." checkbox being ignored in PySide6.
1 parent 3109951 commit f6b7d68

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

release/scripts/mgear/shifter/guide_manager_component.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ def drag_draw_component(self, pGuide):
268268

269269
def draw_component(self, parent=None):
270270
showUI = self.gmcUIInst.showUI_checkBox.checkState()
271+
if isinstance(showUI, QtCore.Qt.CheckState):
272+
showUI = showUI.value
273+
showUI = bool(showUI)
271274
for x in self.gmcUIInst.component_listView.selectedIndexes():
272275
guide_manager.draw_comp(x.data(), parent, showUI)
273276

0 commit comments

Comments
 (0)