Skip to content

Commit 2e53c75

Browse files
authored
Merge pull request #132 from drinfernoo/dep-settings
Fix Settings Shortcuts for Dependency Add-ons
2 parents 22345e4 + 69e18d3 commit 2e53c75

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

plugin.program.autowidget/resources/lib/add.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def build_labels(source, path_def=None, target=""):
9797

9898
if path != "addons://user/":
9999
path = path.replace("addons://user/", "plugin://")
100+
path = path.replace("addons://dependencies/", "dependency://")
100101
if "plugin://plugin.video.themoviedb.helper" in path and not "&widget=True" in path:
101102
path += "&widget=True"
102103
labels["file"]["file"] = path
@@ -122,6 +123,8 @@ def _add_as(path_def):
122123
i in path for i in ["addons://user", "plugin://", "script://"]
123124
) and not parse_qsl(path):
124125
pass
126+
elif "dependency://" in path:
127+
types = [(shortcut_types[4], type_labels[4])]
125128
else:
126129
types = [(shortcut_types[0], type_labels[0])]
127130

plugin.program.autowidget/resources/lib/menu.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def call_path(path_id):
428428
path_def["file"]["file"]
429429
.replace("plugin://", "")
430430
.replace("script://", "")
431+
.replace("dependency://", "")
431432
.split("/")[0]
432433
)
433434
elif (

0 commit comments

Comments
 (0)