Shuffle: fix quick song change deleting the whole queue
This commit is contained in:
		| @@ -436,6 +436,8 @@ namespace unison | |||||||
|             } |             } | ||||||
|  |  | ||||||
|             _isUpdatingSong = false; |             _isUpdatingSong = false; | ||||||
|  |  | ||||||
|  |             Trace.WriteLine("Updated song"); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         private async void GetAlbumCover(string path, CancellationToken token) |         private async void GetAlbumCover(string path, CancellationToken token) | ||||||
| @@ -565,13 +567,13 @@ namespace unison | |||||||
|  |  | ||||||
|         public void Prev() |         public void Prev() | ||||||
|         { |         { | ||||||
|             if (CanPrevNext) |             if (CanPrevNext && !_isUpdatingSong) | ||||||
|                 SendCommand(new PreviousCommand()); |                 SendCommand(new PreviousCommand()); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         public void Next() |         public void Next() | ||||||
|         { |         { | ||||||
|             if (CanPrevNext) |             if (CanPrevNext && !_isUpdatingSong) | ||||||
|                 SendCommand(new NextCommand()); |                 SendCommand(new NextCommand()); | ||||||
|         } |         } | ||||||
|          |          | ||||||
|   | |||||||
| @@ -386,8 +386,9 @@ namespace unison | |||||||
|                 return; |                 return; | ||||||
|  |  | ||||||
|             int PlaylistLength = _mpd.GetStatus().PlaylistLength; |             int PlaylistLength = _mpd.GetStatus().PlaylistLength; | ||||||
|             int Num = 10 - PlaylistLength; |             int Num = 50 - PlaylistLength; | ||||||
|             if (Num < 1) |  | ||||||
|  |             if (PlaylistLength > 25) | ||||||
|                 return; |                 return; | ||||||
|  |  | ||||||
|             await UpdateFilter();            |             await UpdateFilter();            | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user