fix: Error popup now showing up immediately after click (#1272)

From #1265, Looks like Error Popup doesn't handle properly in some
circumstances.

---------

Co-authored-by: iTrooz <hey@itrooz.fr>
Co-authored-by: WerWolv <werwolv98@gmail.com>
This commit is contained in:
Imron jehleh
2023-09-16 18:09:24 +07:00
committed by GitHub
parent 691df0fc83
commit 64a30a45d5
2 changed files with 4 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ namespace hex::plugin::builtin {
ImGui::CloseCurrentPopup();
}
else {
ImGui::CloseCurrentPopup();
auto errorMessage = provider->getErrorMessage();
if (errorMessage.empty()) {
PopupError::open("hex.builtin.view.provider_settings.load_error"_lang);