File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1010 xmlns : vm =" clr-namespace:Flow.Launcher.ViewModel"
1111 Name =" FlowMainWindow"
1212 Title =" Flow Launcher"
13- Width =" {Binding MainWindowWidth, Mode=OneWay }"
13+ Width =" {Binding MainWindowWidth, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }"
1414 MinWidth =" 400"
1515 MinHeight =" 30"
1616 d : DataContext =" {d:DesignInstance Type=vm:MainViewModel}"
Original file line number Diff line number Diff line change @@ -584,22 +584,22 @@ public string QueryText
584584 [ RelayCommand ]
585585 private void IncreaseWidth ( )
586586 {
587- Settings . WindowSize += 100 ;
587+ MainWindowWidth += 100 ;
588588 Settings . WindowLeft -= 50 ;
589589 OnPropertyChanged ( nameof ( MainWindowWidth ) ) ;
590590 }
591591
592592 [ RelayCommand ]
593593 private void DecreaseWidth ( )
594594 {
595- if ( MainWindowWidth - 100 < 400 || Settings . WindowSize == 400 )
595+ if ( MainWindowWidth - 100 < 400 || MainWindowWidth == 400 )
596596 {
597- Settings . WindowSize = 400 ;
597+ MainWindowWidth = 400 ;
598598 }
599599 else
600600 {
601+ MainWindowWidth -= 100 ;
601602 Settings . WindowLeft += 50 ;
602- Settings . WindowSize -= 100 ;
603603 }
604604
605605 OnPropertyChanged ( nameof ( MainWindowWidth ) ) ;
You can’t perform that action at this time.
0 commit comments