1
0
mirror of synced 2024-09-24 11:38:26 +02:00
ImHex/plugins/builtin
SparkyTD adbcc48de7
fix: Multiple file reload popups stacking on top of each other (#1654)
<!--
Please provide as much information as possible about what your PR aims
to do.
PRs with no description will most likely be closed until more
information is provided.
If you're planing on changing fundamental behaviour or add big new
features, please open a GitHub Issue first before starting to work on
it.
If it's not something big and you still want to contact us about it,
feel free to do so !
-->

### 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.
2024-05-07 23:43:20 +02:00
..
include/content fix: Multiple file reload popups stacking on top of each other (#1654) 2024-05-07 23:43:20 +02:00
romfs lang: Refactored langtool, updated chinese translation (#1623) 2024-05-01 20:49:55 +02:00
source fix: Multiple file reload popups stacking on top of each other (#1654) 2024-05-07 23:43:20 +02:00
tests tests: Add infrastructure for testing plugins (#1538) 2024-02-26 20:51:08 +01:00
CMakeLists.txt tests: Add infrastructure for testing plugins (#1538) 2024-02-26 20:51:08 +01:00