show restart dialog on restart require

This commit is contained in:
iLLiCiTiT 2021-05-27 12:48:17 +02:00
parent 859ed6853c
commit 38afc53c38

View file

@ -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()