always update positions and set default geometry

This commit is contained in:
Jakub Trllo 2025-06-24 17:40:21 +02:00
parent 1df2ad8cfa
commit 0f4718beb5

View file

@ -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