Browse Source

Remove update confirmation dialog

pull/629/head
JT 7 months ago
parent
commit
a8b4d680a1
  1. 1
      CHANGELOG.md
  2. 15
      StabilityMatrix.Avalonia/ViewModels/PackageManager/PackageCardViewModel.cs
  3. 2
      StabilityMatrix.Avalonia/Views/PackageManagerPage.axaml

1
CHANGELOG.md

@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
### Changed
- Improved error message when logging in with a Lykos account fails due to incorrect email or password
- Model Browser & Workflow Browser now auto-load when first navigating to those pages
- Removed update confirmation dialog, instead showing the new version in the update button tooltip
### Fixed
- Fixed package launch not working when environment variable `SETUPTOOLS_USE_DISTUTILS` is set due to conflict with a default environment variable. User environment variables will now correctly override any default environment variables.
- Fixed "No refresh token found" error when failing to login with Lykos account in some cases

15
StabilityMatrix.Avalonia/ViewModels/PackageManager/PackageCardViewModel.cs

@ -433,21 +433,6 @@ public partial class PackageCardViewModel(
versionOptions.CommitHash = latest.Sha;
}
var confirmationDialog = new BetterContentDialog
{
Title = Resources.Label_AreYouSure,
Content =
$"{Package.DisplayName} will be updated to the latest version ({versionOptions.GetReadableVersionString()})",
PrimaryButtonText = Resources.Action_Continue,
SecondaryButtonText = Resources.Action_Cancel,
DefaultButton = ContentDialogButton.Primary,
IsSecondaryButtonEnabled = true,
};
var dialogResult = await confirmationDialog.ShowAsync();
if (dialogResult != ContentDialogResult.Primary)
return;
var updatePackageStep = new UpdatePackageStep(
settingsManager,
Package,

2
StabilityMatrix.Avalonia/Views/PackageManagerPage.axaml

@ -260,7 +260,7 @@
<ToolTip.Tip>
<TextBlock>
<Run Text="{x:Static lang:Resources.Label_UpdateAvailable}"/>
<Run Text="(" /><Run Text="{Binding UpdateVersion.ReadableVersionString, FallbackValue=none}"/><Run Text=")"/>
<Run Text="(" /><Run Text="{Binding UpdateVersion.ReadableVersionString, FallbackValue=Unknown}"/><Run Text=")"/>
</TextBlock>
</ToolTip.Tip>
<Button.IsVisible>

Loading…
Cancel
Save