remove tray publisher from experimental tools

This commit is contained in:
Jakub Trllo 2022-08-15 14:00:11 +02:00
parent b88e537ca9
commit 7accb372cd
2 changed files with 2 additions and 18 deletions

View file

@ -2,7 +2,7 @@ import os
from openpype.lib import get_openpype_execute_args
from openpype.lib.execute import run_detached_process
from openpype.modules import OpenPypeModule
from openpype_interfaces import ITrayAction
from openpype.modules.interfaces import ITrayAction
class TrayPublishAction(OpenPypeModule, ITrayAction):
@ -21,20 +21,9 @@ class TrayPublishAction(OpenPypeModule, ITrayAction):
"publish"
)
]
self._experimental_tools = None
def tray_init(self):
from openpype.tools.experimental_tools import ExperimentalTools
self._experimental_tools = ExperimentalTools()
def tray_menu(self, *args, **kwargs):
super(TrayPublishAction, self).tray_menu(*args, **kwargs)
traypublisher = self._experimental_tools.get("traypublisher")
visible = False
if traypublisher and traypublisher.enabled:
visible = True
self._action_item.setVisible(visible)
return
def on_action_trigger(self):
self.run_traypublisher()

View file

@ -89,11 +89,6 @@ class ExperimentalTools:
"New publisher",
"Combined creation and publishing into one tool.",
self._show_publisher
),
ExperimentalTool(
"traypublisher",
"New Standalone Publisher",
"Standalone publisher using new publisher. Requires restart"
)
]