[banshee] [Playlist Sync] Fix (1) init of sync combo boxes
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [Playlist Sync] Fix (1) init of sync combo boxes
- Date: Tue, 15 Dec 2009 01:03:32 +0000 (UTC)
commit d4777162986f7c3ef130f2058ff7266b26d1862f
Author: Gabriel Burt <gabriel burt gmail com>
Date: Sun Dec 13 21:03:30 2009 -0800
[Playlist Sync] Fix (1) init of sync combo boxes
src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapContent.cs | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapContent.cs b/src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapContent.cs
index a4ffe7b..99b1f6d 100644
--- a/src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapContent.cs
+++ b/src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapContent.cs
@@ -107,7 +107,13 @@ namespace Banshee.Dap.Gui
}
}
- combo.Active = 0;
+ if (!library_sync.Enabled)
+ combo.Active = 0;
+ else if (library_sync.SyncEntireLibrary)
+ combo.Active = 1;
+ else if (library_sync.SyncSource != null)
+ combo.ActiveValue = library_sync.SyncSource;
+
combo.Changed += (o, a) => {
library_sync.Enabled = combo.Active != 0;
library_sync.SyncEntireLibrary = combo.Active == 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]