Skip to content

Commit

Permalink
Added the actioon to ignore the current playing song for a month (a.k…
Browse files Browse the repository at this point in the history
….a. "Tired of this song") from system tray right-click menu.
  • Loading branch information
seliver committed Jun 6, 2015
1 parent f755a9f commit 08876f1
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 35 deletions.
3 changes: 3 additions & 0 deletions BetaChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.4.12
Added the actioon to ignore the current playing song for a month (a.k.a. "Tired of this song") from system tray right-click menu.

v1.4.11
Added http api command "toggleplaypause".

Expand Down
9 changes: 7 additions & 2 deletions Elpis/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public partial class MainWindow : Window
private ToolStripMenuItem _notifyMenu_Title;
private ToolStripMenuItem _notifyMenu_UpVote;
private ToolStripMenuItem _notifyMenu_DownVote;
private ToolStripMenuItem _notifyMenu_Tired;
private ToolStripMenuItem _notifyMenu_Exit;
public static Player _player;
public static PlaylistPage _playlistPage;
Expand Down Expand Up @@ -562,6 +563,7 @@ private void LoadNotifyMenu()
_notifyMenu_BreakSong.Visible =
_notifyMenu_DownVote.Visible =
_notifyMenu_UpVote.Visible =
_notifyMenu_Tired.Visible =
_notifyMenu_BreakVote.Visible = showSongInfo;

_notifyMenu_PlayPause.Enabled =
Expand Down Expand Up @@ -615,10 +617,12 @@ private void SetupNotifyIcon()
_notifyMenu_DownVote = new ToolStripMenuItem("Dislike Song");
_notifyMenu_DownVote.Click += ((o, e) => _playlistPage.ThumbDownCurrent() );

_notifyMenu_Tired = new ToolStripMenuItem("Tired of This Song");
_notifyMenu_Tired.Click += ((o, e) => _playlistPage.TiredOfCurrentSongFromSystemTray());

_notifyMenu_UpVote = new ToolStripMenuItem("Like Song");
_notifyMenu_UpVote.Click += ((o, e) => _playlistPage.ThumbUpCurrent() );



_notifyMenu_Exit = new ToolStripMenuItem("Exit Elpis");
_notifyMenu_Exit.Click += ((o, e) => { _forceClose = true; Close(); });

Expand All @@ -633,6 +637,7 @@ private void SetupNotifyIcon()
_notifyMenu_BreakVote,
_notifyMenu_UpVote,
_notifyMenu_DownVote,
_notifyMenu_Tired,
_notifyMenu_BreakStation,
_notifyMenu_Stations,
_notifyMenu_BreakExit,
Expand Down
6 changes: 6 additions & 0 deletions Elpis/Pages/PlaylistPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,12 @@ private void mnuTired_Click(object sender, RoutedEventArgs e)
}
}

public void TiredOfCurrentSongFromSystemTray()
{
_player.SongTired(_player.CurrentSong);
_player.Next();
}

private void mnuBookArtist_Click(object sender, RoutedEventArgs e)
{
if (_currMenuSong != null)
Expand Down
2 changes: 1 addition & 1 deletion Elpis/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.4.11")]
[assembly: AssemblyVersion("1.4.12")]
//[assembly: AssemblyFileVersion("0.0.0.0")]
Loading

0 comments on commit 08876f1

Please sign in to comment.