PR 6361: Disable addon without uninstalling

Post here if you have re-based and finalised code to integrate into master, which was discussed, agreed to and tested in other forums. You can also submit your PR directly on github.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
chennes
Veteran
Posts: 3876
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

PR 6361: Disable addon without uninstalling

Post by chennes »

https://github.com/FreeCAD/FreeCAD/pull/6361

I've gotten a couple of requests for this. I wanted to keep it as simple as possible, so it was easy to script from outside FreeCAD, and easy to understand what was happening in the event that you do it accidentally. To that end, it's based on a simple existence test of a file called "ADDON_DISABLED" in the root directory of an Addon. FreeCAD will look for this file on startup, and if found, skip the addon. The Addon Manager has been modified to both display a message when an Addon is disabled, as well as to create and delete this file from the GUI.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Post Reply