From a6de6c7bf6976aaeed0ba8f139f9457eb6b7c83e Mon Sep 17 00:00:00 2001 From: DB p Date: Mon, 27 May 2024 06:07:45 +0900 Subject: [PATCH] Adjust Width Logic --- Flow.Launcher/MainWindow.xaml | 2 +- Flow.Launcher/MainWindow.xaml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index f0f6c981e..139789ea6 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -12,7 +12,7 @@ xmlns:vm="clr-namespace:Flow.Launcher.ViewModel" Name="FlowMainWindow" Title="Flow Launcher" - Width="{Binding MainWindowWidth, Mode=TwoWay}" + Width="{Binding MainWindowWidth, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" MinWidth="430" MinHeight="30" d:DataContext="{d:DesignInstance Type=vm:MainViewModel}" diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 7b497f394..6b77ae569 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -131,7 +131,7 @@ namespace Flow.Launcher } } - _settings.WindowSize = Width; + _viewModel.MainWindowWidth = Width; FlowMainWindow.SizeToContent = SizeToContent.Height; }