mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
use 'AYONSettingsRegistry' for traypublisher registry
This commit is contained in:
parent
28f1ab0fb5
commit
5e81191904
1 changed files with 6 additions and 19 deletions
|
|
@ -10,9 +10,8 @@ import platform
|
|||
|
||||
from qtpy import QtWidgets, QtCore
|
||||
import qtawesome
|
||||
import appdirs
|
||||
|
||||
from ayon_core.lib import JSONSettingRegistry, is_running_from_build
|
||||
from ayon_core.lib import AYONSettingsRegistry, is_running_from_build
|
||||
from ayon_core.pipeline import install_host
|
||||
from ayon_core.hosts.traypublisher.api import TrayPublisherHost
|
||||
from ayon_core.tools.publisher.control_qt import QtPublisherController
|
||||
|
|
@ -26,6 +25,11 @@ from ayon_core.tools.ayon_utils.widgets import (
|
|||
)
|
||||
|
||||
|
||||
class TrayPublisherRegistry(AYONSettingsRegistry):
|
||||
def __init__(self):
|
||||
super(TrayPublisherRegistry, self).__init__("traypublisher")
|
||||
|
||||
|
||||
class TrayPublisherController(QtPublisherController):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(TrayPublisherController, self).__init__(*args, **kwargs)
|
||||
|
|
@ -43,23 +47,6 @@ class TrayPublisherController(QtPublisherController):
|
|||
return self._projects_model.get_project_items(sender)
|
||||
|
||||
|
||||
class TrayPublisherRegistry(JSONSettingRegistry):
|
||||
"""Class handling AYON general settings registry.
|
||||
|
||||
Attributes:
|
||||
vendor (str): Name used for path construction.
|
||||
product (str): Additional name used for path construction.
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
self.vendor = "pypeclub"
|
||||
self.product = "openpype"
|
||||
name = "tray_publisher"
|
||||
path = appdirs.user_data_dir(self.product, self.vendor)
|
||||
super(TrayPublisherRegistry, self).__init__(name, path)
|
||||
|
||||
|
||||
class StandaloneOverlayWidget(QtWidgets.QFrame):
|
||||
project_selected = QtCore.Signal(str)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue