|
2 | 2 | using System.ComponentModel; |
3 | 3 | using System.Linq; |
4 | 4 | using System.Media; |
| 5 | +using System.Reactive.Linq; |
5 | 6 | using System.Threading.Tasks; |
6 | 7 | using System.Windows; |
7 | 8 | using System.Windows.Controls; |
|
10 | 11 | using System.Windows.Interop; |
11 | 12 | using System.Windows.Media; |
12 | 13 | using System.Windows.Media.Animation; |
13 | | -using System.Windows.Controls; |
14 | 14 | using System.Windows.Shapes; |
15 | 15 | using System.Windows.Threading; |
16 | 16 | using CommunityToolkit.Mvvm.DependencyInjection; |
|
22 | 22 | using Flow.Launcher.Plugin.SharedCommands; |
23 | 23 | using Flow.Launcher.ViewModel; |
24 | 24 | using ModernWpf.Controls; |
25 | | -using Key = System.Windows.Input.Key; |
26 | | -using System.Media; |
27 | 25 | 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; |
33 | 27 | using MouseButtons = System.Windows.Forms.MouseButtons; |
34 | 28 | using NotifyIcon = System.Windows.Forms.NotifyIcon; |
35 | 29 | using Screen = System.Windows.Forms.Screen; |
@@ -539,10 +533,10 @@ private void InitializeNotifyIcon() |
539 | 533 | { |
540 | 534 | switch (e.Button) |
541 | 535 | { |
542 | | - case System.Windows.Forms.MouseButtons.Left: |
| 536 | + case MouseButtons.Left: |
543 | 537 | _viewModel.ToggleFlowLauncher(); |
544 | 538 | break; |
545 | | - case System.Windows.Forms.MouseButtons.Right: |
| 539 | + case MouseButtons.Right: |
546 | 540 |
|
547 | 541 | contextMenu.IsOpen = true; |
548 | 542 | // Get context menu handle and bring it to the foreground |
|
0 commit comments