Addon Manager: Add note about Other... deps

This commit is contained in:
Chris Hennes
2022-09-09 12:54:43 -05:00
parent 06dda1fda2
commit 9f76d96bb3
2 changed files with 24 additions and 1 deletions

View File

@@ -532,6 +532,9 @@ class EditDependency:
# Expect mostly Python dependencies...
self.dialog.typeComboBox.setCurrentIndex(2)
self.dialog.layout().setSizeConstraint(QLayout.SetFixedSize)
def exec(
self, dep_type="", dep_name="", dep_optional=False
) -> Tuple[str, str, bool]:
@@ -618,8 +621,10 @@ class EditDependency:
selection = self.dialog.dependencyComboBox.currentData()
if selection == "other":
self.dialog.lineEdit.show()
self.dialog.otherNote.show()
else:
self.dialog.lineEdit.hide()
self.dialog.otherNote.hide()
class EditFreeCADVersions:

View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>347</width>
<height>142</height>
<height>236</height>
</rect>
</property>
<property name="windowTitle">
@@ -43,6 +43,24 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="otherNote">
<property name="font">
<font>
<italic>true</italic>
</font>
</property>
<property name="text">
<string>NOTE: If &quot;Other...&quot; is selected, the package is not in the ALLOWED_PYTHON_PACKAGES.txt file, and will not be automatically installed by the Addon Manager. Submit a PR at &lt;a href=https://github.com/FreeCAD/FreeCAD-addons&quot;&gt;https://github.com/FreeCAD/FreeCAD-addons&lt;/a&gt; to request addition of a package.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0" colspan="2">