mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
small modification in logging module
This commit is contained in:
parent
903713c749
commit
06b1501cac
1 changed files with 6 additions and 3 deletions
|
|
@ -6,6 +6,8 @@ class LoggingModule:
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.log = Logger().get_logger(self.__class__.__name__, "logging")
|
self.log = Logger().get_logger(self.__class__.__name__, "logging")
|
||||||
|
|
||||||
|
self.window = None
|
||||||
|
|
||||||
self.tray_init(main_parent, parent)
|
self.tray_init(main_parent, parent)
|
||||||
|
|
||||||
def tray_init(self, main_parent, parent):
|
def tray_init(self, main_parent, parent):
|
||||||
|
|
@ -25,7 +27,7 @@ class LoggingModule:
|
||||||
menu = QtWidgets.QMenu('Logging', parent_menu)
|
menu = QtWidgets.QMenu('Logging', parent_menu)
|
||||||
|
|
||||||
show_action = QtWidgets.QAction("Show Logs", menu)
|
show_action = QtWidgets.QAction("Show Logs", menu)
|
||||||
show_action.triggered.connect(self.on_show_logs)
|
show_action.triggered.connect(self._show_logs_gui)
|
||||||
menu.addAction(show_action)
|
menu.addAction(show_action)
|
||||||
|
|
||||||
parent_menu.addMenu(menu)
|
parent_menu.addMenu(menu)
|
||||||
|
|
@ -36,5 +38,6 @@ class LoggingModule:
|
||||||
def process_modules(self, modules):
|
def process_modules(self, modules):
|
||||||
return
|
return
|
||||||
|
|
||||||
def on_show_logs(self):
|
def _show_logs_gui(self):
|
||||||
self.window.show()
|
if self.window:
|
||||||
|
self.window.show()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue