Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
auto-reload object types file when changed externally #2674
related to issue #1816
I added a FileSystemWatcher to Preferences to watch the objecttypes.xml for changes. When the file changes, it calls setObjectTypes() which emits the objectTypesChanged.
I also had to modify the ObjectTypesEditor to listen for the Preferences::objectTypesChanged signal so it will also update for external changes.