diff --git a/plugins/builtin/source/content/views/view_provider_settings.cpp b/plugins/builtin/source/content/views/view_provider_settings.cpp index 846ad374c..6f2d1727d 100644 --- a/plugins/builtin/source/content/views/view_provider_settings.cpp +++ b/plugins/builtin/source/content/views/view_provider_settings.cpp @@ -38,6 +38,10 @@ namespace hex::plugin::builtin { if (ImGui::Button("hex.builtin.common.open"_lang)) { if (provider->open()) ImGui::CloseCurrentPopup(); + else { + View::showErrorPopup("hex.builtin.view.provider_settings.load_error"_lang); + ImHexApi::Provider::remove(provider); + } } ImGui::SameLine(); diff --git a/plugins/builtin/source/lang/de_DE.cpp b/plugins/builtin/source/lang/de_DE.cpp index 114188d2e..a92a0b16e 100644 --- a/plugins/builtin/source/lang/de_DE.cpp +++ b/plugins/builtin/source/lang/de_DE.cpp @@ -380,6 +380,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.provider_settings.name", "Provider Einstellungen" }, { "hex.builtin.view.provider_settings.load_popup", "Provider öffnen" }, + { "hex.builtin.view.provider_settings.load_error", "Ein Fehler beim öffnen dieses Providers is aufgetreten!"}, { "hex.builtin.view.find.name", "Finden" }, { "hex.builtin.view.find.searching", "Suchen..." }, diff --git a/plugins/builtin/source/lang/en_US.cpp b/plugins/builtin/source/lang/en_US.cpp index ccb2ae169..0766e9bdd 100644 --- a/plugins/builtin/source/lang/en_US.cpp +++ b/plugins/builtin/source/lang/en_US.cpp @@ -384,6 +384,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.provider_settings.name", "Provider Settings" }, { "hex.builtin.view.provider_settings.load_popup", "Open Provider" }, + { "hex.builtin.view.provider_settings.load_error", "An error occurred while trying to open this provider!"}, { "hex.builtin.view.find.name", "Find" }, { "hex.builtin.view.find.searching", "Searching..." }, diff --git a/plugins/builtin/source/lang/it_IT.cpp b/plugins/builtin/source/lang/it_IT.cpp index 1b1edcfae..563301a0c 100644 --- a/plugins/builtin/source/lang/it_IT.cpp +++ b/plugins/builtin/source/lang/it_IT.cpp @@ -383,6 +383,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.provider_settings.name", "Impostazioni Provider" }, { "hex.builtin.view.provider_settings.load_popup", "Apri Provider" }, + // { "hex.builtin.view.provider_settings.load_error", "An error occurred while trying to open this provider!"}, //{ "hex.builtin.view.find.name", "Find" }, // { "hex.builtin.view.find.searching", "Searching..." }, diff --git a/plugins/builtin/source/lang/ja_JP.cpp b/plugins/builtin/source/lang/ja_JP.cpp index 75ceff3cd..e5b45cf99 100644 --- a/plugins/builtin/source/lang/ja_JP.cpp +++ b/plugins/builtin/source/lang/ja_JP.cpp @@ -384,6 +384,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.provider_settings.name", "プロバイダ設定" }, { "hex.builtin.view.provider_settings.load_popup", "プロバイダを開く" }, + // { "hex.builtin.view.provider_settings.load_error", "An error occurred while trying to open this provider!"}, //{ "hex.builtin.view.find.name", "Find" }, // { "hex.builtin.view.find.searching", "Searching..." }, diff --git a/plugins/builtin/source/lang/pt_BR.cpp b/plugins/builtin/source/lang/pt_BR.cpp index 7e5325e48..1b9b3915f 100644 --- a/plugins/builtin/source/lang/pt_BR.cpp +++ b/plugins/builtin/source/lang/pt_BR.cpp @@ -381,6 +381,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.provider_settings.name", "Configurações do provedor" }, { "hex.builtin.view.provider_settings.load_popup", "Abrir Provedor" }, + // { "hex.builtin.view.provider_settings.load_error", "An error occurred while trying to open this provider!"}, //{ "hex.builtin.view.find.name", "Find" }, // { "hex.builtin.view.find.searching", "Searching..." }, diff --git a/plugins/builtin/source/lang/zh_CN.cpp b/plugins/builtin/source/lang/zh_CN.cpp index c8ba78ffe..4199cc76b 100644 --- a/plugins/builtin/source/lang/zh_CN.cpp +++ b/plugins/builtin/source/lang/zh_CN.cpp @@ -384,6 +384,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.provider_settings.name", "提供器设置" }, { "hex.builtin.view.provider_settings.load_popup", "打开提供器" }, + // { "hex.builtin.view.provider_settings.load_error", "An error occurred while trying to open this provider!"}, //{ "hex.builtin.view.find.name", "Find" }, // { "hex.builtin.view.find.searching", "Searching..." }, diff --git a/plugins/builtin/source/lang/zh_TW.cpp b/plugins/builtin/source/lang/zh_TW.cpp index 0385e037e..8451e5669 100644 --- a/plugins/builtin/source/lang/zh_TW.cpp +++ b/plugins/builtin/source/lang/zh_TW.cpp @@ -382,6 +382,7 @@ namespace hex::plugin::builtin { { "hex.builtin.view.provider_settings.name", "提供者設定" }, { "hex.builtin.view.provider_settings.load_popup", "開啟提供者" }, + // { "hex.builtin.view.provider_settings.load_error", "An error occurred while trying to open this provider!"}, //{ "hex.builtin.view.find.name", "Find" }, // { "hex.builtin.view.find.searching", "Searching..." },