mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
show restart dialog on restart require
This commit is contained in:
parent
859ed6853c
commit
38afc53c38
1 changed files with 5 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ from .categories import (
|
|||
SystemWidget,
|
||||
ProjectWidget
|
||||
)
|
||||
from .widgets import ShadowWidget
|
||||
from .widgets import ShadowWidget, RestartDialog
|
||||
from . import style
|
||||
|
||||
from openpype.tools.settings import (
|
||||
|
|
@ -139,4 +139,7 @@ class MainWidget(QtWidgets.QWidget):
|
|||
tab_widget.reset()
|
||||
|
||||
def _on_restart_required(self):
|
||||
pass
|
||||
dialog = RestartDialog(self)
|
||||
result = dialog.exec_()
|
||||
if result == 1:
|
||||
self.trigger_restart.emit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue