mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
always update positions and set default geometry
This commit is contained in:
parent
1df2ad8cfa
commit
0f4718beb5
1 changed files with 1 additions and 7 deletions
|
|
@ -470,21 +470,15 @@ class ActionMenuPopup(QtWidgets.QWidget):
|
|||
|
||||
self._close_timer.stop()
|
||||
|
||||
update_position = False
|
||||
if action_id != self._current_id:
|
||||
update_position = True
|
||||
self.setGeometry(pos.x(), pos.y(), 1, 1)
|
||||
self._current_id = action_id
|
||||
self._update_items(action_items)
|
||||
|
||||
# Make sure is visible
|
||||
if not self._showed:
|
||||
update_position = True
|
||||
self.show()
|
||||
|
||||
if not update_position:
|
||||
self.raise_()
|
||||
return
|
||||
|
||||
# Set geometry to position
|
||||
# - first make sure widget changes from '_update_items'
|
||||
# are recalculated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue