Skip to content

Commit 5d2778a

Browse files
committed
Code cleanup
1 parent c28a37a commit 5d2778a

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,11 @@ public MainWindow(Settings settings, MainViewModel mainVM)
6969
};
7070
}
7171

72-
DispatcherTimer timer = new DispatcherTimer { Interval = new TimeSpan(0, 0, 0, 0, 500), IsEnabled = false };
73-
7472
public MainWindow()
7573
{
7674
InitializeComponent();
7775
}
78-
76+
7977
private int _initialWidth;
8078
private int _initialHeight;
8179

@@ -343,22 +341,26 @@ private void InitializeNotifyIcon()
343341
var gamemodeIcon = new FontIcon { Glyph = "\ue7fc" };
344342
var gamemode = new MenuItem
345343
{
346-
Header = InternationalizationManager.Instance.GetTranslation("GameMode"), Icon = gamemodeIcon
344+
Header = InternationalizationManager.Instance.GetTranslation("GameMode"),
345+
Icon = gamemodeIcon
347346
};
348347
var positionresetIcon = new FontIcon { Glyph = "\ue73f" };
349348
var positionreset = new MenuItem
350349
{
351-
Header = InternationalizationManager.Instance.GetTranslation("PositionReset"), Icon = positionresetIcon
350+
Header = InternationalizationManager.Instance.GetTranslation("PositionReset"),
351+
Icon = positionresetIcon
352352
};
353353
var settingsIcon = new FontIcon { Glyph = "\ue713" };
354354
var settings = new MenuItem
355355
{
356-
Header = InternationalizationManager.Instance.GetTranslation("iconTraySettings"), Icon = settingsIcon
356+
Header = InternationalizationManager.Instance.GetTranslation("iconTraySettings"),
357+
Icon = settingsIcon
357358
};
358359
var exitIcon = new FontIcon { Glyph = "\ue7e8" };
359360
var exit = new MenuItem
360361
{
361-
Header = InternationalizationManager.Instance.GetTranslation("iconTrayExit"), Icon = exitIcon
362+
Header = InternationalizationManager.Instance.GetTranslation("iconTrayExit"),
363+
Icon = exitIcon
362364
};
363365

364366
open.Click += (o, e) => _viewModel.ToggleFlowLauncher();
@@ -636,7 +638,7 @@ private async void OnDeactivated(object sender, EventArgs e)
636638
// and always after Settings window is closed.
637639
if (_settings.UseAnimation)
638640
await Task.Delay(100);
639-
641+
640642
if (_settings.HideWhenDeactivated && !_viewModel.ExternalPreviewVisible)
641643
{
642644
_viewModel.Hide();
@@ -677,7 +679,7 @@ public void HideStartup()
677679
_viewModel.Show();
678680
}
679681
}
680-
682+
681683
public Screen SelectedScreen()
682684
{
683685
Screen screen = null;

0 commit comments

Comments
 (0)