mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
hide content widget before adding widgets to it's layout
This commit is contained in:
parent
9fce774a7e
commit
4eef7ecadd
1 changed files with 6 additions and 0 deletions
|
|
@ -578,6 +578,11 @@ class PluginsDetailsWidget(QtWidgets.QWidget):
|
|||
|
||||
self._need_refresh = False
|
||||
|
||||
# Hide content widget before updating
|
||||
# - add widgets to layout can happen without recalculating
|
||||
# the layout and widget size hints
|
||||
self._content_widget.setVisible(False)
|
||||
|
||||
for plugin_id in self._get_plugin_ids():
|
||||
widget = self._widgets_by_plugin_id.get(plugin_id)
|
||||
if widget is None:
|
||||
|
|
@ -591,6 +596,7 @@ class PluginsDetailsWidget(QtWidgets.QWidget):
|
|||
or plugin_id in self._plugin_filter
|
||||
)
|
||||
|
||||
self._content_widget.setVisible(True)
|
||||
|
||||
class DeselectableTreeView(QtWidgets.QTreeView):
|
||||
"""A tree view that deselects on clicking on an empty area in the view"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue