We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b742c8 commit 69db6beCopy full SHA for 69db6be
NodeGraphQt/base/menu.py
@@ -304,6 +304,15 @@ def set_enabled(self, state):
304
"""
305
self.qaction.setEnabled(state)
306
307
+ def set_hidden(self, hidden):
308
+ """
309
+ Sets then command item visibility in the context menu.
310
+
311
+ Args:
312
+ hidden (bool): true to hide the command item.
313
314
+ self.qaction.setVisible(hidden)
315
316
def show(self):
317
318
Set the command to be visible in the context menu.
0 commit comments