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

[MGCB Editor] Added file watcher for the content project file with project reload prompt #7797

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

beartwigsam
Copy link

@beartwigsam beartwigsam commented May 12, 2022

Right now, if you have the MGCB Editor open and you pull in changes to the content project file from Git, the editor won't reload those changes automatically nor will it warn you that the project file has been changed outside of the editor. If you then go ahead and make some changes and save, the changes you pulled in would be overwritten.

This PR adds a file watcher for the content project file and prompts a dialog asking if the user would like to reload the project whenever an unexpected change is detected.

image

@mrhelmut mrhelmut requested a review from harry-cpp May 12, 2022 14:34
…orms. Moved FileWatcher setup out to separate method and added method call in SaveAs- and NewProject methods
@BenMakesGames
Copy link

This is rad, and solves a real & common problem, making devs' lives better.

With my messy desktop, I also sometimes open a second copy of MCGB editor via the IDE, which can also cause one of the instances to get out of sync with disk changes. I'm more diligent about checking for this now, but I'd still appreciate the tool helping me out for those times when my diligence wanes...

vizerian pushed a commit to vizerian/MonoGame that referenced this pull request Feb 23, 2024
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

3 participants