Skip to content

Commit

Permalink
Minimize was alwasy minimizing to systray, fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Inzaniity committed Apr 16, 2022
1 parent d83ab01 commit 97c334f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Songify Slim/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
Title="Songify" Height="285" Width="588" Loaded="MetroWindowLoaded"
StateChanged="MetroWindowStateChanged" ResizeMode="CanMinimize" Closed="MetroWindowClosed"
ShowDialogsOverTitleBar="False" Closing="MetroWindow_Closing" WindowStartupLocation="Manual">
ShowDialogsOverTitleBar="False" Closing="MetroWindow_Closing" WindowStartupLocation="CenterScreen">
<controls:MetroWindow.Resources>
<Style TargetType="{x:Type dialog:MessageDialog}"
x:Key="NewCustomMessageDialogStyle"
Expand Down
2 changes: 1 addition & 1 deletion Songify Slim/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ private void MetroWindowStateChanged(object sender, EventArgs e)
{
// if the window state changes to minimize check run MinimizeToSysTray()
if (WindowState != WindowState.Minimized) return;
MinimizeToSysTray();
if (Settings.Systray) MinimizeToSysTray();
}

private void Mi_Blacklist_Click(object sender, RoutedEventArgs e)
Expand Down

0 comments on commit 97c334f

Please sign in to comment.