From 83bc664a30905bf6adddb15c8f336056e079056e Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Mon, 27 May 2024 12:26:14 +0600 Subject: [PATCH] Fix memory leak in ResultViewModel --- Flow.Launcher/ResultListBox.xaml | 6 ++-- Flow.Launcher/ViewModel/ResultViewModel.cs | 37 ++-------------------- 2 files changed, 5 insertions(+), 38 deletions(-) diff --git a/Flow.Launcher/ResultListBox.xaml b/Flow.Launcher/ResultListBox.xaml index 382b7c2e4..7dc036afb 100644 --- a/Flow.Launcher/ResultListBox.xaml +++ b/Flow.Launcher/ResultListBox.xaml @@ -175,7 +175,7 @@ Margin="0,0,0,1" VerticalAlignment="Bottom" DockPanel.Dock="Left" - FontSize="{Binding ResultItemFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" + FontSize="{Binding Settings.ResultItemFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEnabled="False" Style="{DynamicResource ItemTitleStyle}" Text="{Binding Result.Title}" @@ -194,7 +194,7 @@ Grid.Row="1" Margin="0,1,0,0" VerticalAlignment="Top" - FontSize="{Binding ResultSubItemFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" + FontSize="{Binding Settings.ResultSubItemFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEnabled="False" Style="{DynamicResource ItemSubTitleStyle}" Text="{Binding Result.SubTitle}" @@ -224,7 +224,7 @@