@@ -21,7 +21,7 @@ public MainWindow()
2121 _config = AppManager . Instance . Config ;
2222 _manager = new WindowNotificationManager ( TopLevel . GetTopLevel ( this ) ) { MaxItems = 3 , Position = NotificationPosition . TopRight } ;
2323
24- this . KeyDown += MainWindow_KeyDown ;
24+ KeyDown += MainWindow_KeyDown ;
2525 menuSettingsSetUWP . Click += menuSettingsSetUWP_Click ;
2626 menuPromotion . Click += menuPromotion_Click ;
2727 menuCheckUpdate . Click += MenuCheckUpdate_Click ;
@@ -153,14 +153,14 @@ public MainWindow()
153153
154154 if ( Utils . IsWindows ( ) )
155155 {
156- this . Title = $ "{ Utils . GetVersion ( ) } - { ( Utils . IsAdministrator ( ) ? ResUI . RunAsAdmin : ResUI . NotRunAsAdmin ) } ";
156+ Title = $ "{ Utils . GetVersion ( ) } - { ( Utils . IsAdministrator ( ) ? ResUI . RunAsAdmin : ResUI . NotRunAsAdmin ) } ";
157157
158158 ThreadPool . RegisterWaitForSingleObject ( Program . ProgramStarted , OnProgramStarted , null , - 1 , false ) ;
159159 HotkeyManager . Instance . Init ( _config , OnHotkeyHandler ) ;
160160 }
161161 else
162162 {
163- this . Title = $ "{ Utils . GetVersion ( ) } ";
163+ Title = $ "{ Utils . GetVersion ( ) } ";
164164
165165 menuRebootAsAdmin . IsVisible = false ;
166166 menuSettingsSetUWP . IsVisible = false ;
@@ -170,7 +170,7 @@ public MainWindow()
170170
171171 if ( _config . UiItem . AutoHideStartup && Utils . IsWindows ( ) )
172172 {
173- this . WindowState = WindowState . Minimized ;
173+ WindowState = WindowState . Minimized ;
174174 }
175175
176176 AddHelpMenuItem ( ) ;
@@ -407,27 +407,27 @@ public void ShowHideWindow(bool? blShow)
407407 : ! _config . UiItem . ShowInTaskbar ) ;
408408 if ( bl )
409409 {
410- this . Show ( ) ;
411- if ( this . WindowState == WindowState . Minimized )
410+ Show ( ) ;
411+ if ( WindowState == WindowState . Minimized )
412412 {
413- this . WindowState = WindowState . Normal ;
413+ WindowState = WindowState . Normal ;
414414 }
415- this . Activate ( ) ;
416- this . Focus ( ) ;
415+ Activate ( ) ;
416+ Focus ( ) ;
417417 }
418418 else
419419 {
420420 if ( Utils . IsLinux ( ) && _config . UiItem . Hide2TrayWhenClose == false )
421421 {
422- this . WindowState = WindowState . Minimized ;
422+ WindowState = WindowState . Minimized ;
423423 return ;
424424 }
425425
426- foreach ( var ownedWindow in this . OwnedWindows )
426+ foreach ( var ownedWindow in OwnedWindows )
427427 {
428428 ownedWindow . Close ( ) ;
429429 }
430- this . Hide ( ) ;
430+ Hide ( ) ;
431431 }
432432
433433 _config . UiItem . ShowInTaskbar = bl ;
0 commit comments