final fix
This commit is contained in:
@@ -56,5 +56,17 @@ namespace ModpackUpdater.Apps.Client.Gui.LangRes {
|
||||
return ResourceManager.GetString("UpdateAvailable_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ErrorWhileUpdate_Title {
|
||||
get {
|
||||
return ResourceManager.GetString("ErrorWhileUpdate_Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ErrorWhileUpdate {
|
||||
get {
|
||||
return ResourceManager.GetString("ErrorWhileUpdate", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,4 +124,10 @@ If you confirm, the update will be installed automatically within a few seconds.
|
||||
<data name="UpdateAvailable_Title" xml:space="preserve">
|
||||
<value>New program version available</value>
|
||||
</data>
|
||||
<data name="ErrorWhileUpdate_Title" xml:space="preserve">
|
||||
<value>Error while updating</value>
|
||||
</data>
|
||||
<data name="ErrorWhileUpdate" xml:space="preserve">
|
||||
<value>An error happened while updating the program. Error message:\n{0}</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -312,8 +312,9 @@ public partial class MainForm : Window
|
||||
{
|
||||
await UpdateApp();
|
||||
}
|
||||
catch
|
||||
catch (Exception ex)
|
||||
{
|
||||
await MessageBoxManager.GetMessageBoxStandard(MsgBoxLangRes.UpdateAvailable_Title, string.Format(MsgBoxLangRes.UpdateAvailable, ex.Message), ButtonEnum.YesNo, MsBox.Avalonia.Enums.Icon.Info).ShowAsync();
|
||||
IsEnabled = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Pilz.Updating" Version="4.3.5" />
|
||||
<PackageReference Include="Pilz.Updating.Client" Version="4.4.5" />
|
||||
<PackageReference Include="Pilz.Updating.Client" Version="4.4.6" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user