From 975cefc87d2b038cb07e1fbdab369a0c5f86874f Mon Sep 17 00:00:00 2001 From: Ionite Date: Sun, 18 Jun 2023 18:04:26 -0400 Subject: [PATCH] UI fixes for license dialog freeze due to size --- StabilityMatrix/CheckpointManagerPage.xaml | 8 +-- StabilityMatrix/Database/ILiteDbContext.cs | 3 +- StabilityMatrix/Database/LiteDbContext.cs | 22 ++++++++ StabilityMatrix/MainWindow.xaml | 5 +- .../ViewModels/SettingsViewModel.cs | 50 +++++++++---------- 5 files changed, 55 insertions(+), 33 deletions(-) diff --git a/StabilityMatrix/CheckpointManagerPage.xaml b/StabilityMatrix/CheckpointManagerPage.xaml index 051698a0..6e1b6987 100644 --- a/StabilityMatrix/CheckpointManagerPage.xaml +++ b/StabilityMatrix/CheckpointManagerPage.xaml @@ -9,6 +9,7 @@ ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}" x:Class="StabilityMatrix.CheckpointManagerPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:controls="clr-namespace:StabilityMatrix.Controls" xmlns:converters="clr-namespace:StabilityMatrix.Converters" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:designData="clr-namespace:StabilityMatrix.DesignData" @@ -342,9 +343,9 @@ IsIndeterminate="{Binding Progress.IsIndeterminate, FallbackValue=False}" Margin="64,8" Name="ImportProgressBar" - Value="{Binding Progress.Value, FallbackValue=20}" VerticalAlignment="Center" - Visibility="{Binding Progress.ProgressVisibility, FallbackValue=Visible}" /> + Visibility="{Binding Progress.ProgressVisibility, FallbackValue=Visible}" + controls:ProgressBarSmoother.SmoothValue="{Binding Progress.Value, FallbackValue=20}" /> @@ -423,8 +424,9 @@ Margin="16,0" Orientation="Horizontal">