mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
change variant input on variant action click
This commit is contained in:
parent
ad3a10e74f
commit
38251d7021
1 changed files with 6 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ class CreateDialog(QtWidgets.QDialog):
|
|||
layout.addWidget(create_btn, 0)
|
||||
|
||||
create_btn.clicked.connect(self._on_create)
|
||||
variant_hints_menu.triggered.connect(self._on_variant_action)
|
||||
|
||||
controller.add_reset_callback(self._on_control_reset)
|
||||
|
||||
|
|
@ -273,6 +274,11 @@ class CreateDialog(QtWidgets.QDialog):
|
|||
def _on_control_reset(self):
|
||||
self.refresh()
|
||||
|
||||
def _on_variant_action(self, action):
|
||||
value = action.text()
|
||||
if self.variant_input.text() != value:
|
||||
self.variant_input.setText(value)
|
||||
|
||||
def moveEvent(self, event):
|
||||
super(CreateDialog, self).moveEvent(event)
|
||||
self._last_pos = self.pos()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue