-
-
Notifications
You must be signed in to change notification settings - Fork 216
Ignore event_type to prevent unexpected model changed popup #3278
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
Ignore event_type to prevent unexpected model changed popup #3278
Conversation
including small changes on function calls
gaphor/ui/filemanager.py
Outdated
time.sleep(2) | ||
self.filename = filename | ||
self._update_monitor() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be handled via GLib.timeout_add
. This way the whole UI freezes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the end, the timeout really did not fully resolve this... I still saw the popups. Therefore, I just ran Gaphor with debugger and realized that the popups on Mac are triggered specifically by ATTRIBUTE_CHANGED events, which I don't think are events we're interested in. As such, I've now added a check against this event-type, which resolves this issue. Happy to hear your thoughts on this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @teunhoevenaars, thanks! These changes look great!
Works well. It doesn't trigger if I |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #3275
What is the new behavior?
time-out after save action, before file monitor is restarted
Does this PR introduce a breaking change?
Other information