mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
added check for parent window
This commit is contained in:
parent
024403ea69
commit
2e9a63c410
1 changed files with 10 additions and 8 deletions
|
|
@ -126,15 +126,17 @@ def on_save(_):
|
|||
QtWidgets.QApplication.topLevelWidgets()}
|
||||
|
||||
parent = top_level_widgets.get("MayaWindow", None)
|
||||
if parent is None:
|
||||
pass
|
||||
else:
|
||||
dialog = popup.Popup(parent=parent)
|
||||
dialog.setWindowTitle("Maya scene not in line with project")
|
||||
dialog.setMessage("The FPS is out of sync, please fix")
|
||||
# Set new text for button (add optional argument for the popup?)
|
||||
dialog.widgets["show"].setText("Fix")
|
||||
dialog.on_show.connect(lib.set_project_fps)
|
||||
|
||||
dialog = popup.Popup(parent=parent)
|
||||
dialog.setWindowTitle("Maya scene not in line with project")
|
||||
dialog.setMessage("The FPS is out of sync, please fix")
|
||||
# Set new text for button (could be an optional argument for the popup)
|
||||
dialog.widgets["show"].setText("Fix")
|
||||
dialog.on_show.connect(lib.set_project_fps)
|
||||
|
||||
dialog.show()
|
||||
dialog.show()
|
||||
|
||||
|
||||
def on_open(_):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue