mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #5877 from ynput/enhancement/center-publisher
Publisher: Center publisher window on first show
This commit is contained in:
commit
2f4f92fbc5
1 changed files with 2 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ from openpype.tools.utils import (
|
|||
MessageOverlayObject,
|
||||
PixmapLabel,
|
||||
)
|
||||
from openpype.tools.utils.lib import center_window
|
||||
|
||||
from .constants import ResetKeySequence
|
||||
from .publish_report_viewer import PublishReportViewerWidget
|
||||
|
|
@ -529,6 +530,7 @@ class PublisherWindow(QtWidgets.QDialog):
|
|||
def _on_first_show(self):
|
||||
self.resize(self.default_width, self.default_height)
|
||||
self.setStyleSheet(style.load_stylesheet())
|
||||
center_window(self)
|
||||
self._reset_on_show = self._reset_on_first_show
|
||||
|
||||
def _on_show_timer(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue