1
0
mirror of synced 2024-09-24 11:38:26 +02:00
ImHex/plugins/builtin/include/content
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
..
helpers impr: Added support for SVG loading, improved texture loading API 2024-05-01 20:36:10 +02:00
popups impr: Make unsaved changes popup behave more like in other applications 2024-04-23 21:02:16 +02:00
providers fix: Multiple file reload popups stacking on top of each other (#1654) 2024-05-07 23:43:20 +02:00
views build: Updated ImGui to v1.90.5 2024-04-12 22:56:10 +02:00
command_line_interface.hpp feat: Added --verbose command line option to enable debug logs 2024-03-10 15:22:14 +01:00
data_processor_nodes.hpp refactor: Split data processor nodes in several files (#1419) 2023-11-13 23:36:39 +01:00
global_actions.hpp impr: Make unsaved changes popup behave more like in other applications 2024-04-23 21:02:16 +02:00
recent.hpp feat: Draw info banner on welcome screen if one exists 2023-11-17 15:54:38 +01:00
tools_entries.hpp feat: Added simple HTTP request tool 2024-01-04 00:38:21 +01:00