mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
avalon-launcher can be launched again but without setting root
This commit is contained in:
parent
8f1ffbffcd
commit
a1d35fb5bd
1 changed files with 10 additions and 11 deletions
|
|
@ -33,23 +33,22 @@ class AvalonApps:
|
|||
return
|
||||
|
||||
icon = QtGui.QIcon(launcher_lib.resource("icon", "main.png"))
|
||||
# aShowLauncher = QtWidgets.QAction(icon, "&Launcher", parent_menu)
|
||||
aShowLauncher = QtWidgets.QAction(icon, "&Launcher", parent_menu)
|
||||
aLibraryLoader = QtWidgets.QAction("Library", parent_menu)
|
||||
|
||||
# aShowLauncher.triggered.connect(self.show_launcher)
|
||||
aShowLauncher.triggered.connect(self.show_launcher)
|
||||
aLibraryLoader.triggered.connect(self.show_library_loader)
|
||||
|
||||
# parent_menu.addAction(aShowLauncher)
|
||||
parent_menu.addAction(aShowLauncher)
|
||||
parent_menu.addAction(aLibraryLoader)
|
||||
|
||||
# def show_launcher(self):
|
||||
# # if app_launcher don't exist create it/otherwise only show main window
|
||||
# if self.app_launcher is None:
|
||||
# root = os.path.realpath(os.environ["AVALON_PROJECTS"])
|
||||
# io.install()
|
||||
# APP_PATH = launcher_lib.resource("qml", "main.qml")
|
||||
# self.app_launcher = launcher_widget.Launcher(root, APP_PATH)
|
||||
# self.app_launcher.window.show()
|
||||
def show_launcher(self):
|
||||
# if app_launcher don't exist create it/otherwise only show main window
|
||||
if self.app_launcher is None:
|
||||
io.install()
|
||||
APP_PATH = launcher_lib.resource("qml", "main.qml")
|
||||
self.app_launcher = launcher_widget.Launcher(APP_PATH)
|
||||
self.app_launcher.window.show()
|
||||
|
||||
def show_library_loader(self):
|
||||
libraryloader.show(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue