mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Console to system tray - moved import because of Python2
This commit is contained in:
parent
21bfdd90af
commit
b879da876b
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,6 @@ from concurrent.futures import CancelledError
|
|||
from Qt import QtWidgets
|
||||
|
||||
from openpype.modules import ITrayService
|
||||
from openpype.tools.tray_app.app import ConsoleDialog
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
|
@ -35,6 +34,8 @@ class HostListener:
|
|||
webserver.add_route('*', "/ws/host_listener", self.websocket_handler)
|
||||
|
||||
def _host_is_connecting(self, host_name, label):
|
||||
from openpype.tools.tray_app.app import ConsoleDialog
|
||||
|
||||
""" Initialize dialog, adds to submenu. """
|
||||
services_submenu = self.module._services_submenu
|
||||
action = QtWidgets.QAction(label, services_submenu)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue