Skip to content

Commit 102636f

Browse files
committed
Improve code quality
1 parent dc92f6a commit 102636f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.ComponentModel;
33
using System.Linq;
44
using System.Media;
5+
using System.Reactive.Linq;
56
using System.Threading.Tasks;
67
using System.Windows;
78
using System.Windows.Controls;
@@ -10,7 +11,6 @@
1011
using System.Windows.Interop;
1112
using System.Windows.Media;
1213
using System.Windows.Media.Animation;
13-
using System.Windows.Controls;
1414
using System.Windows.Shapes;
1515
using System.Windows.Threading;
1616
using CommunityToolkit.Mvvm.DependencyInjection;
@@ -22,14 +22,8 @@
2222
using Flow.Launcher.Plugin.SharedCommands;
2323
using Flow.Launcher.ViewModel;
2424
using ModernWpf.Controls;
25-
using Key = System.Windows.Input.Key;
26-
using System.Media;
2725
using DataObject = System.Windows.DataObject;
28-
using System.Windows.Media;
29-
using System.Windows.Interop;
30-
using Windows.Win32;
31-
using System.Reactive.Linq;
32-
using System.Windows.Shapes;
26+
using Key = System.Windows.Input.Key;
3327
using MouseButtons = System.Windows.Forms.MouseButtons;
3428
using NotifyIcon = System.Windows.Forms.NotifyIcon;
3529
using Screen = System.Windows.Forms.Screen;
@@ -539,10 +533,10 @@ private void InitializeNotifyIcon()
539533
{
540534
switch (e.Button)
541535
{
542-
case System.Windows.Forms.MouseButtons.Left:
536+
case MouseButtons.Left:
543537
_viewModel.ToggleFlowLauncher();
544538
break;
545-
case System.Windows.Forms.MouseButtons.Right:
539+
case MouseButtons.Right:
546540

547541
contextMenu.IsOpen = true;
548542
// Get context menu handle and bring it to the foreground

0 commit comments

Comments
 (0)