Skip to content

Commit 31742df

Browse files
authored
Merge pull request #583 from timothyliu3d/5.1.0-fix-drawcomp-settings-checkbox
Fix "Show Settings After Create" checkbox not working in PySide6
2 parents 0195320 + f6b7d68 commit 31742df

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
@@ -279,6 +279,9 @@ def drag_draw_component(self, pGuide):
279279

280280
def draw_component(self, parent=None):
281281
showUI = self.gmcUIInst.showUI_checkBox.checkState()
282+
if isinstance(showUI, QtCore.Qt.CheckState):
283+
showUI = showUI.value
284+
showUI = bool(showUI)
282285
for x in self.gmcUIInst.component_listView.selectedIndexes():
283286
guide_manager.draw_comp(x.data(), parent, showUI)
284287

0 commit comments

Comments
 (0)