final fix

This commit is contained in:
2025-11-09 13:58:43 +01:00
parent d570d29c92
commit 574a8d5ec2
4 changed files with 21 additions and 2 deletions

View File

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

View File

@@ -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>

View File

@@ -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

View File

@@ -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>