1
0
mirror of synced 2024-12-03 19:57:20 +01:00
ImHex/plugins/builtin/include/content/providers
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
..
undo_operations impr: Restructure various components much better (#1520) 2024-01-28 22:14:59 +01:00
base64_provider.hpp feat: Added Base64 provider 2023-12-26 23:42:22 +01:00
disk_provider.hpp impr: Add warning to disk provider if ImHex is not running elevated 2023-12-17 23:16:55 +01:00
file_provider.hpp fix: Multiple file reload popups stacking on top of each other (#1654) 2024-05-07 23:43:20 +02:00
gdb_provider.hpp impr: Make providers return a 64 bit size on all platforms 2023-12-07 12:06:26 +01:00
intel_hex_provider.hpp refactor: Get rid of this->m_ 2023-12-19 13:10:25 +01:00
memory_file_provider.hpp impr: Load small files into memory, open larger files as read-only by default 2024-03-10 14:31:39 +01:00
motorola_srec_provider.hpp impr: General code cleanup 2023-11-10 20:47:08 +01:00
null_provider.hpp refactor: Better interface for the event system 2023-12-08 10:29:44 +01:00
process_memory_provider.hpp build: Added support patches for FreeBSD (#1584) 2024-03-21 21:31:17 +01:00
view_provider.hpp fix: View registers causing crashes when being deleted 2024-03-28 22:21:00 +01:00