Provide upgrade / uninstall instructions to prevent users hitting that remove error message

This commit is contained in:
Dion Moult
2021-03-09 17:53:15 +11:00
parent 5616a6ede5
commit 1a7ea1ea05
@@ -297,6 +297,10 @@ class BIM_ADDON_preferences(bpy.types.AddonPreferences):
def draw(self, context):
layout = self.layout
row = layout.row()
row.label(text="To upgrade, first uninstall your current BlenderBIM Add-on, then install the new version.", icon="ERROR")
row = layout.row()
row.label(text="To uninstall, first disable the add-on. Then restart Blender before pressing the 'Remove' button.", icon="ERROR")
row = layout.row()
row.operator("bim.open_upstream", text="Visit Homepage").page = "home"
row.operator("bim.open_upstream", text="Visit Documentation").page = "docs"
row = layout.row()