1
0
mirror of synced 2024-11-24 15:50:16 +01:00

sys: Added provider open error message

This commit is contained in:
WerWolv 2022-07-30 22:34:23 +02:00
parent 3d5568f65f
commit 9ede1ab32c
8 changed files with 11 additions and 0 deletions

View File

@ -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();

View File

@ -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..." },

View File

@ -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..." },

View File

@ -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..." },

View File

@ -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..." },

View File

@ -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..." },

View File

@ -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..." },

View File

@ -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..." },