[banshee] [Muinshee] Disable Auto-DJ (bgo#595749)
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Muinshee] Disable Auto-DJ (bgo#595749)
- Date: Sun, 7 Mar 2010 04:00:06 +0000 (UTC)
commit ef6814d7e3592642dd01266f69cad62e07b4425d
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Sun Mar 7 14:57:53 2010 +1100
[Muinshee] Disable Auto-DJ (bgo#595749)
src/Clients/Muinshee/Muinshee/PlayerInterface.cs | 1 +
.../Banshee.PlayQueue/PlayQueueSource.cs | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/Muinshee/Muinshee/PlayerInterface.cs b/src/Clients/Muinshee/Muinshee/PlayerInterface.cs
index cb94537..4ccebda 100644
--- a/src/Clients/Muinshee/Muinshee/PlayerInterface.cs
+++ b/src/Clients/Muinshee/Muinshee/PlayerInterface.cs
@@ -96,6 +96,7 @@ namespace Muinshee
private void InitPlayQueue (PlayQueueSource play_queue)
{
if (actions == null) {
+ play_queue.Populate = false;
actions = new MuinsheeActions (play_queue);
actions.Actions.AddActionGroup (actions);
ServiceManager.SourceManager.SetActiveSource (play_queue);
diff --git a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
index 7aec8e6..e58a36e 100644
--- a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
+++ b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
@@ -732,8 +732,10 @@ namespace Banshee.PlayQueue
SetAsPlaybackSourceUnlessPlaying ();
}
+ private bool enable_population = true;
public bool Populate {
- get { return populate_shuffle_mode != "off"; }
+ get { return enable_population && populate_shuffle_mode != "off"; }
+ set { enable_population = value; }
}
private ITrackModelSource PriorSource {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]