Skip to content

Commit

Permalink
refactor!:deprecate QML upload from bus
Browse files Browse the repository at this point in the history
never worked right, causes more issues than it helps
  • Loading branch information
JarbasAl committed Sep 18, 2024
1 parent 49947a2 commit 311ec46
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ovos_gui/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ def get_file_extension(framework: str) -> str:
return "qml"
return ""

@property
def _gui_cache(self):
return f"{GUI_CACHE_PATH}]/{self.res_namespace}"

@property
def res_namespace(self):
return "system" if self.page_id.startswith("SYSTEM") else self.namespace
Expand All @@ -64,10 +60,7 @@ def get_uri(self, framework: str = "qt5") -> str:
return self.url

res_filename = f"{self.page_id}.{self.get_file_extension(framework)}"
if self.res_namespace == "system":
path = join(dirname(__file__), "res", "gui", framework, res_filename)
else:
path = f"{self._gui_cache}/{framework}/{res_filename}"
path = f"{GUI_CACHE_PATH}/{self.res_namespace}/{framework}/{res_filename}"
LOG.debug(f"Resolved page URI: {path}")
if isfile(path):
return path
Expand Down

0 comments on commit 311ec46

Please sign in to comment.