mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
tray just pass menu to tray manager initialize
This commit is contained in:
parent
acdb503536
commit
bcb0172931
2 changed files with 3 additions and 7 deletions
|
|
@ -278,13 +278,11 @@ class TrayModulesManager(ModulesManager):
|
|||
self.modules_by_id = {}
|
||||
self.modules_by_name = {}
|
||||
|
||||
def initialize(self, tray_widget, main_window):
|
||||
self.tray_widget = tray_widget
|
||||
self.main_window = main_window
|
||||
|
||||
def initialize(self, tray_menu):
|
||||
self.initialize_modules()
|
||||
self.tray_init()
|
||||
self.connect_modules()
|
||||
self.tray_menu(tray_menu)
|
||||
|
||||
def get_enabled_tray_modules(self):
|
||||
output = []
|
||||
|
|
|
|||
|
|
@ -36,9 +36,7 @@ class TrayManager:
|
|||
def initialize_modules(self):
|
||||
"""Add modules to tray."""
|
||||
|
||||
self.modules_manager.initialize(self.tray_widget, self.main_window)
|
||||
|
||||
self.modules_manager.tray_menu(self.tray_widget.menu)
|
||||
self.modules_manager.initialize(self.tray_widget.menu)
|
||||
|
||||
# Add services if they are
|
||||
services_submenu = ITrayService.services_submenu()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue