File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public void RestartApp()
70
70
71
71
public void RestarApp ( ) => RestartApp ( ) ;
72
72
73
- public void ShowMainWindow ( ) => _mainVM . MainWindowVisibility = Visibility . Visible ;
73
+ public void ShowMainWindow ( ) => _mainVM . Show ( ) ;
74
74
75
75
public void CheckForNewUpdate ( ) => _settingsVM . UpdateApp ( ) ;
76
76
Original file line number Diff line number Diff line change 15
15
using Flow . Launcher . Helper ;
16
16
using System . Windows . Controls ;
17
17
using Flow . Launcher . Core . ExternalPlugins ;
18
- using Screen = System . Windows . Forms . Screen ;
19
18
20
19
namespace Flow . Launcher
21
20
{
Original file line number Diff line number Diff line change @@ -713,23 +713,28 @@ public void ToggleFlowLauncher()
713
713
{
714
714
if ( WinToggleStatus != true )
715
715
{
716
- if ( _settings . UseSound )
717
- {
718
- MediaPlayer media = new MediaPlayer ( ) ;
719
- media . Open ( new Uri ( AppDomain . CurrentDomain . BaseDirectory + "Resources\\ open.wav" ) ) ;
720
- media . Play ( ) ;
721
- }
722
- MainWindowVisibility = Visibility . Visible ;
723
- WinToggleStatus = true ;
724
- ( ( MainWindow ) Application . Current . MainWindow ) . WindowAnimator ( ) ;
725
- MainWindowOpacity = 1 ;
716
+ Show ( ) ;
726
717
}
727
718
else
728
719
{
729
720
Hide ( ) ;
730
721
}
731
722
}
732
723
724
+ public void Show ( )
725
+ {
726
+ if ( _settings . UseSound )
727
+ {
728
+ MediaPlayer media = new MediaPlayer ( ) ;
729
+ media . Open ( new Uri ( AppDomain . CurrentDomain . BaseDirectory + "Resources\\ open.wav" ) ) ;
730
+ media . Play ( ) ;
731
+ }
732
+ MainWindowVisibility = Visibility . Visible ;
733
+ WinToggleStatus = true ;
734
+ ( ( MainWindow ) Application . Current . MainWindow ) . WindowAnimator ( ) ;
735
+ MainWindowOpacity = 1 ;
736
+ }
737
+
733
738
public async void Hide ( )
734
739
{
735
740
MainWindowOpacity = 0 ;
You can’t perform that action at this time.
0 commit comments