Addon Manager: Add note about Other... deps
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 "Other..." 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 <a href=https://github.com/FreeCAD/FreeCAD-addons">https://github.com/FreeCAD/FreeCAD-addons</a> 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">
|
||||
|
||||
Reference in New Issue
Block a user