1
0
mirror of synced 2024-11-27 17:10:51 +01:00

impr: Only mark providers dirty when they're not dirty already

This commit is contained in:
WerWolv 2024-08-03 17:00:09 +02:00
parent 60663babc8
commit 0184bf9a7d

View File

@ -337,8 +337,11 @@ namespace hex {
}
void markDirty() {
get()->markDirty();
EventProviderDirtied::post(get());
const auto provider = get();
if (!provider->isDirty()) {
provider->markDirty();
EventProviderDirtied::post(provider);
}
}
void resetDirty() {