Skip to content

Commit 08876f1

Browse files
committed
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.
1 parent f755a9f commit 08876f1

File tree

6 files changed

+104
-35
lines changed

6 files changed

+104
-35
lines changed

BetaChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v1.4.12
2+
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.
3+
14
v1.4.11
25
Added http api command "toggleplaypause".
36

Elpis/MainWindow.xaml.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public partial class MainWindow : Window
8787
private ToolStripMenuItem _notifyMenu_Title;
8888
private ToolStripMenuItem _notifyMenu_UpVote;
8989
private ToolStripMenuItem _notifyMenu_DownVote;
90+
private ToolStripMenuItem _notifyMenu_Tired;
9091
private ToolStripMenuItem _notifyMenu_Exit;
9192
public static Player _player;
9293
public static PlaylistPage _playlistPage;
@@ -562,6 +563,7 @@ private void LoadNotifyMenu()
562563
_notifyMenu_BreakSong.Visible =
563564
_notifyMenu_DownVote.Visible =
564565
_notifyMenu_UpVote.Visible =
566+
_notifyMenu_Tired.Visible =
565567
_notifyMenu_BreakVote.Visible = showSongInfo;
566568

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

620+
_notifyMenu_Tired = new ToolStripMenuItem("Tired of This Song");
621+
_notifyMenu_Tired.Click += ((o, e) => _playlistPage.TiredOfCurrentSongFromSystemTray());
622+
618623
_notifyMenu_UpVote = new ToolStripMenuItem("Like Song");
619624
_notifyMenu_UpVote.Click += ((o, e) => _playlistPage.ThumbUpCurrent() );
620-
621-
625+
622626
_notifyMenu_Exit = new ToolStripMenuItem("Exit Elpis");
623627
_notifyMenu_Exit.Click += ((o, e) => { _forceClose = true; Close(); });
624628

@@ -633,6 +637,7 @@ private void SetupNotifyIcon()
633637
_notifyMenu_BreakVote,
634638
_notifyMenu_UpVote,
635639
_notifyMenu_DownVote,
640+
_notifyMenu_Tired,
636641
_notifyMenu_BreakStation,
637642
_notifyMenu_Stations,
638643
_notifyMenu_BreakExit,

Elpis/Pages/PlaylistPage.xaml.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,12 @@ private void mnuTired_Click(object sender, RoutedEventArgs e)
377377
}
378378
}
379379

380+
public void TiredOfCurrentSongFromSystemTray()
381+
{
382+
_player.SongTired(_player.CurrentSong);
383+
_player.Next();
384+
}
385+
380386
private void mnuBookArtist_Click(object sender, RoutedEventArgs e)
381387
{
382388
if (_currMenuSong != null)

Elpis/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
5454

55-
[assembly: AssemblyVersion("1.4.11")]
55+
[assembly: AssemblyVersion("1.4.12")]
5656
//[assembly: AssemblyFileVersion("0.0.0.0")]

0 commit comments

Comments
 (0)