@@ -69,13 +69,11 @@ public MainWindow(Settings settings, MainViewModel mainVM)
69
69
} ;
70
70
}
71
71
72
- DispatcherTimer timer = new DispatcherTimer { Interval = new TimeSpan ( 0 , 0 , 0 , 0 , 500 ) , IsEnabled = false } ;
73
-
74
72
public MainWindow ( )
75
73
{
76
74
InitializeComponent ( ) ;
77
75
}
78
-
76
+
79
77
private int _initialWidth ;
80
78
private int _initialHeight ;
81
79
@@ -343,22 +341,26 @@ private void InitializeNotifyIcon()
343
341
var gamemodeIcon = new FontIcon { Glyph = "\ue7fc " } ;
344
342
var gamemode = new MenuItem
345
343
{
346
- Header = InternationalizationManager . Instance . GetTranslation ( "GameMode" ) , Icon = gamemodeIcon
344
+ Header = InternationalizationManager . Instance . GetTranslation ( "GameMode" ) ,
345
+ Icon = gamemodeIcon
347
346
} ;
348
347
var positionresetIcon = new FontIcon { Glyph = "\ue73f " } ;
349
348
var positionreset = new MenuItem
350
349
{
351
- Header = InternationalizationManager . Instance . GetTranslation ( "PositionReset" ) , Icon = positionresetIcon
350
+ Header = InternationalizationManager . Instance . GetTranslation ( "PositionReset" ) ,
351
+ Icon = positionresetIcon
352
352
} ;
353
353
var settingsIcon = new FontIcon { Glyph = "\ue713 " } ;
354
354
var settings = new MenuItem
355
355
{
356
- Header = InternationalizationManager . Instance . GetTranslation ( "iconTraySettings" ) , Icon = settingsIcon
356
+ Header = InternationalizationManager . Instance . GetTranslation ( "iconTraySettings" ) ,
357
+ Icon = settingsIcon
357
358
} ;
358
359
var exitIcon = new FontIcon { Glyph = "\ue7e8 " } ;
359
360
var exit = new MenuItem
360
361
{
361
- Header = InternationalizationManager . Instance . GetTranslation ( "iconTrayExit" ) , Icon = exitIcon
362
+ Header = InternationalizationManager . Instance . GetTranslation ( "iconTrayExit" ) ,
363
+ Icon = exitIcon
362
364
} ;
363
365
364
366
open . Click += ( o , e ) => _viewModel . ToggleFlowLauncher ( ) ;
@@ -636,7 +638,7 @@ private async void OnDeactivated(object sender, EventArgs e)
636
638
// and always after Settings window is closed.
637
639
if ( _settings . UseAnimation )
638
640
await Task . Delay ( 100 ) ;
639
-
641
+
640
642
if ( _settings . HideWhenDeactivated && ! _viewModel . ExternalPreviewVisible )
641
643
{
642
644
_viewModel . Hide ( ) ;
@@ -677,7 +679,7 @@ public void HideStartup()
677
679
_viewModel . Show ( ) ;
678
680
}
679
681
}
680
-
682
+
681
683
public Screen SelectedScreen ( )
682
684
{
683
685
Screen screen = null ;
0 commit comments