mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: EventProviderOpened being called before the provider finished opening
This commit is contained in:
@@ -247,11 +247,11 @@ namespace hex::plugin::builtin::recent {
|
||||
if (!provider->open() || !provider->isAvailable()) {
|
||||
ui::ToastError::open(hex::format("hex.builtin.provider.error.open"_lang, provider->getErrorMessage()));
|
||||
TaskManager::doLater([provider] { ImHexApi::Provider::remove(provider); });
|
||||
} else {
|
||||
TaskManager::doLater([provider]{ EventProviderOpened::post(provider); });
|
||||
}
|
||||
});
|
||||
|
||||
EventProviderOpened::post(provider);
|
||||
|
||||
updateRecentEntries();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user