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

Fix a bug that caused the file provider's monitor to trigger the change dialog multiple times in a row (#1645) #1654

Merged
merged 1 commit into from
May 7, 2024

Conversation

SparkyTD
Copy link
Contributor

@SparkyTD SparkyTD commented May 7, 2024

Problem description

This PR aims to address #1645 that caused the built in file provider's change monitor to trigger the notification popup dialog multiple times in a row after multiple external file changes.

Implementation description

I added an additional boolean field m_changeEventAcknowledgementPending that tracks whether there are any pending or unacknowledged change notification dialogs to prevent further dialogs from being opened. The flag is only reset to its initial value once the user has acknowledged the first PopupQuestion dialog.

Since the file is reloaded only after the user clicks 'Yes', it is unnecessary to ensure that only the latest popup is acknowledged.

…ge dialog multiple times in a row (#1645)

Created a new boolean field m_changeEventAcknowledgementPending for tracking whether the user has acknowledged the previous file change event. This way the change dialog will not stack up after multiple external file changes.
@WerWolv WerWolv merged commit adbcc48 into WerWolv:master May 7, 2024
@WerWolv
Copy link
Owner

WerWolv commented May 7, 2024

Thank you!

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