Skip to content

Commit 7d62ded

Browse files
committed
Improve code quality
1 parent a98a033 commit 7d62ded

File tree

2 files changed

+483
-481
lines changed

2 files changed

+483
-481
lines changed

Flow.Launcher/MainWindow.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
Closing="OnClosing"
2121
Deactivated="OnDeactivated"
2222
Icon="Images/app.png"
23-
Initialized="OnInitialized"
2423
Left="{Binding Settings.WindowLeft, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
2524
Loaded="OnLoaded"
2625
LocationChanged="OnLocationChanged"
2726
Opacity="{Binding MainWindowOpacity, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
2827
PreviewKeyDown="OnKeyDown"
2928
PreviewKeyUp="OnKeyUp"
29+
PreviewMouseMove="OnPreviewMouseMove"
3030
ResizeMode="CanResize"
3131
ShowInTaskbar="False"
3232
SizeToContent="Height"
@@ -240,14 +240,14 @@
240240
FontSize="{Binding QueryBoxFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
241241
InputMethod.PreferredImeConversionMode="{Binding StartWithEnglishMode, Converter={StaticResource BoolToIMEConversionModeConverter}}"
242242
InputMethod.PreferredImeState="{Binding StartWithEnglishMode, Converter={StaticResource BoolToIMEStateConverter}}"
243-
PreviewDragOver="OnPreviewDragOver"
243+
PreviewDragOver="QueryTextBox_OnPreviewDragOver"
244244
PreviewKeyUp="QueryTextBox_KeyUp"
245245
Style="{DynamicResource QueryBoxStyle}"
246246
Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
247247
Visibility="Visible"
248248
WindowChrome.IsHitTestVisibleInChrome="True">
249249
<TextBox.CommandBindings>
250-
<CommandBinding Command="ApplicationCommands.Copy" Executed="OnCopy" />
250+
<CommandBinding Command="ApplicationCommands.Copy" Executed="QueryTextBox_OnCopy" />
251251
</TextBox.CommandBindings>
252252
<TextBox.ContextMenu>
253253
<ContextMenu MinWidth="160">

0 commit comments

Comments
 (0)