Addon Manager: Fix score pref path

This commit is contained in:
Chris Hennes
2024-03-04 10:06:23 -06:00
committed by Chris Hennes
parent 722ef69ad9
commit ce76cecfee
3 changed files with 5 additions and 4 deletions

View File

@@ -675,8 +675,8 @@ class CommandAddonManager:
def fetch_addon_score(self) -> None:
"""Fetch the Addon score JSON data from a URL"""
pref = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Addons")
url = pref.GetString("AddonsScoreURL", "NONE")
prefs = fci.Preferences()
url = prefs.get("AddonsScoreURL")
if url and url != "NONE":
self.get_addon_score_worker = GetAddonScoreWorker(
url, self.item_model.repos, self.dialog

View File

@@ -334,13 +334,13 @@ installed addons will be checked for available updates
</sizepolicy>
</property>
<property name="prefEntry" stdset="0">
<cstring>AddonScoreURL</cstring>
<cstring>AddonsScoreURL</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Addons</cstring>
</property>
<property name="toolTip">
<string>The URL for the Addon Score data (see documentation for formatting and hosting details).</string>
<string>The URL for the Addon Score data (see Addon Manager wiki page for formatting and hosting details).</string>
</property>
</widget>
</item>

View File

@@ -3,6 +3,7 @@
"https://raw.githubusercontent.com/FreeCAD/FreeCAD-addons/master/addonflags.json",
"AddonsRemoteCacheURL": "https://addons.freecad.org/metadata.zip",
"AddonsStatsURL": "https://freecad.org/addon_stats.json",
"AddonsScoreURL": "NONE",
"AutoCheck": false,
"BlockedMacros": "BOLTS,WorkFeatures,how to install,documentation,PartsLibrary,FCGear",
"CompositeSplitterState": "",