mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
process events if visibility of shadow widget has changed
This commit is contained in:
parent
dac091ef59
commit
e90b16ed74
2 changed files with 7 additions and 0 deletions
|
|
@ -76,6 +76,8 @@ class SettingsCategoryWidget(QtWidgets.QWidget):
|
|||
|
||||
self._state = state
|
||||
self.state_changed.emit()
|
||||
|
||||
# Process events so emitted signal is processed
|
||||
app = QtWidgets.QApplication.instance()
|
||||
if app:
|
||||
app.processEvents()
|
||||
|
|
|
|||
|
|
@ -66,6 +66,11 @@ class MainWidget(QtWidgets.QWidget):
|
|||
|
||||
self._shadow_widget.setVisible(any_working)
|
||||
|
||||
# Process events to apply shadow widget visibility
|
||||
app = QtWidgets.QApplication.instance()
|
||||
if app:
|
||||
app.processEvents()
|
||||
|
||||
def reset(self):
|
||||
for tab_widget in self.tab_widgets:
|
||||
tab_widget.reset()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue