Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-reload object types file when changed externally #2674

Merged
merged 4 commits into from Nov 20, 2019

Conversation

jacobcoughenour
Copy link
Contributor

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.

Copy link
Member

@bjorn bjorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this improvement! I've left a few minor comments inline.

I'd like to include this in Tiled 1.3.1, which I plan to release tomorrow.

src/tiled/objecttypeseditor.cpp Outdated Show resolved Hide resolved
src/tiled/preferences.cpp Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants