[banshee] FileSystemQueueSource: Only update actions when active
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] FileSystemQueueSource: Only update actions when active
- Date: Sat, 19 May 2012 18:39:12 +0000 (UTC)
commit 0425ac3abc49fb4f9ea48e7660791287322ccb14
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Sat May 19 20:29:08 2012 +0200
FileSystemQueueSource: Only update actions when active
Actions for the FSQ are only available when the FSQ is active, so we
don't need to update them if the FSQ is not the active source.
.../FileSystemQueueSource.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs b/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs
index 719f465..9044b30 100644
--- a/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs
+++ b/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs
@@ -89,7 +89,11 @@ namespace Banshee.FileSystemQueue
actions_loaded = true;
UpdateActions ();
- ServiceManager.SourceManager.ActiveSourceChanged += delegate { ThreadAssist.ProxyToMain (UpdateActions); };
+ ServiceManager.SourceManager.ActiveSourceChanged += delegate {
+ if (ServiceManager.SourceManager.ActiveSource is FileSystemQueueSource) {
+ ThreadAssist.ProxyToMain (UpdateActions);
+ }
+ };
TrackModel.Reloaded += OnTrackModelReloaded;
Reload ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]