Skip to content

Commit

Permalink
Added taskbar icon actions (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Oct 30, 2023
1 parent a5c0eef commit c97439d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion PermaTop/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
</ContextMenu.Template>
<MenuItem
x:Name="SettingsMenu"
Click="SettingsMenu_Click"
Click="SettingsPageBtn_Click"
Foreground="{DynamicResource Foreground1}"
Header="{x:Static lang:Resources.Settings}"
Style="{DynamicResource MenuStyle}" />
Expand Down
19 changes: 12 additions & 7 deletions PermaTop/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,23 @@ private void SettingsPageBtn_Click(object sender, RoutedEventArgs e)
CheckButton(SettingsPageBtn);
}

private void SettingsMenu_Click(object sender, RoutedEventArgs e)
{

}

bool isHidden = false;
private void HideMenu_Click(object sender, RoutedEventArgs e)
{
isHidden = !isHidden;
if (isHidden)
{
Hide();
HideMenu.Header = Properties.Resources.Show;

return;
}
Show();
HideMenu.Header = Properties.Resources.Hide;
}

private void QuitMenu_Click(object sender, RoutedEventArgs e)
{

}
Application.Current.Shutdown();
}
}

0 comments on commit c97439d

Please sign in to comment.