mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
renamed module.py to addon.py, changed addon name and host name
This commit is contained in:
parent
f0ddc5b746
commit
3e912a88f6
2 changed files with 7 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from .module import TrayPublishModule
|
||||
from .addon import TrayPublishAddon
|
||||
|
||||
|
||||
__all__ = (
|
||||
"TrayPublishModule",
|
||||
"TrayPublishAddon",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ from openpype.modules.interfaces import ITrayAction, IHostAddon
|
|||
TRAYPUBLISH_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
class TrayPublishModule(OpenPypeModule, IHostAddon, ITrayAction):
|
||||
class TrayPublishAddon(OpenPypeModule, IHostAddon, ITrayAction):
|
||||
label = "New Publish (beta)"
|
||||
name = "traypublish_tool"
|
||||
host_name = "traypublish"
|
||||
name = "traypublisher"
|
||||
host_name = "traypublisher"
|
||||
|
||||
def initialize(self, modules_settings):
|
||||
self.enabled = True
|
||||
|
|
@ -28,7 +28,7 @@ class TrayPublishModule(OpenPypeModule, IHostAddon, ITrayAction):
|
|||
self._experimental_tools = ExperimentalTools()
|
||||
|
||||
def tray_menu(self, *args, **kwargs):
|
||||
super(TrayPublishModule, self).tray_menu(*args, **kwargs)
|
||||
super(TrayPublishAddon, self).tray_menu(*args, **kwargs)
|
||||
traypublisher = self._experimental_tools.get("traypublisher")
|
||||
visible = False
|
||||
if traypublisher and traypublisher.enabled:
|
||||
|
|
@ -53,7 +53,7 @@ class TrayPublishModule(OpenPypeModule, IHostAddon, ITrayAction):
|
|||
click_group.add_command(cli_main)
|
||||
|
||||
|
||||
@click.group(TrayPublishModule.name, help="TrayPublisher related commands.")
|
||||
@click.group(TrayPublishAddon.name, help="TrayPublisher related commands.")
|
||||
def cli_main():
|
||||
pass
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue