mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
remove default value from options menu
This commit is contained in:
parent
6f38c0f0ba
commit
adca0cae24
1 changed files with 3 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ class ButtonWithOptions(QtWidgets.QFrame):
|
|||
if default is None:
|
||||
default = option
|
||||
default_label = option_label
|
||||
continue
|
||||
action = QtWidgets.QAction(option_label, options_menu)
|
||||
action.setData(option)
|
||||
options_menu.addAction(action)
|
||||
|
|
@ -70,6 +71,8 @@ class ButtonWithOptions(QtWidgets.QFrame):
|
|||
self.options_btn = options_btn
|
||||
self.options_menu = options_menu
|
||||
|
||||
options_btn.setEnabled(not options_menu.isEmpty())
|
||||
|
||||
self._default_value = default
|
||||
|
||||
def resizeEvent(self, event):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue