[banshee] [SourceManager] Simplify property get with fallback
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [SourceManager] Simplify property get with fallback
- Date: Tue, 24 Aug 2010 18:05:19 +0000 (UTC)
commit d82747e7c38d2baee1d9c170093a7d73cf37712b
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Aug 24 13:04:07 2010 -0500
[SourceManager] Simplify property get with fallback
.../Banshee.Sources/SourceManager.cs | 6 +-----
src/Hyena | 2 +-
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs b/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
index 0086f83..ef35001 100644
--- a/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
+++ b/src/Core/Banshee.Services/Banshee.Sources/SourceManager.cs
@@ -128,11 +128,7 @@ namespace Banshee.Sources
try {
Source source = (Source)node.CreateInstance ();
extension_sources.Add (node.Id, source);
- bool add_source = true;
- if (source.Properties.Contains ("AutoAddSource")) {
- add_source = source.Properties.GetBoolean ("AutoAddSource");
- }
- if (add_source) {
+ if (source.Properties.Get<bool> ("AutoAddSource", true)) {
AddSource (source);
}
Log.DebugFormat ("Extension source loaded: {0}", source.Name);
diff --git a/src/Hyena b/src/Hyena
index 02788c4..d56839c 160000
--- a/src/Hyena
+++ b/src/Hyena
@@ -1 +1 @@
-Subproject commit 02788c4966f9a8b660bb8be306c22a1b11eaa1b0
+Subproject commit d56839c38ff03c9b043867edc4a7c239c27ada26
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]