sys: Added provider open error message
This commit is contained in:
parent
3d5568f65f
commit
9ede1ab32c
@ -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();
|
||||
|
@ -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..." },
|
||||
|
@ -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..." },
|
||||
|
@ -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..." },
|
||||
|
@ -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..." },
|
||||
|
@ -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..." },
|
||||
|
@ -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..." },
|
||||
|
@ -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..." },
|
||||
|
Loading…
Reference in New Issue
Block a user