mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
trigger reset on first show
This commit is contained in:
parent
f4dddfa2b8
commit
c54608a751
1 changed files with 7 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ class PublisherWindow(QtWidgets.QWidget):
|
|||
def __init__(self, parent=None):
|
||||
super(PublisherWindow, self).__init__(parent)
|
||||
|
||||
self._first_show = True
|
||||
# TODO Title, Icon, Stylesheet
|
||||
|
||||
main_frame = QtWidgets.QWidget(self)
|
||||
|
|
@ -82,6 +83,12 @@ class PublisherWindow(QtWidgets.QWidget):
|
|||
)
|
||||
# self.setStyleSheet("border: 1px solid black;")
|
||||
|
||||
def showEvent(self, event):
|
||||
super(PublisherWindow, self).showEvent(event)
|
||||
if self._first_show:
|
||||
self._first_show = False
|
||||
self.reset()
|
||||
|
||||
def reset(self):
|
||||
self.controller.reset()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue