[banshee] [NowPlaying] Remember if simplified



commit bf7c5526420ca4515f2e67f6c599594ff2f56411
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Tue Aug 17 12:59:27 2010 -0700

    [NowPlaying] Remember if simplified

 .../Banshee.NowPlaying/NowPlayingSource.cs         |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/NowPlayingSource.cs b/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/NowPlayingSource.cs
index 0cdfb15..9f44636 100644
--- a/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/NowPlayingSource.cs
+++ b/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/NowPlayingSource.cs
@@ -53,6 +53,8 @@ namespace Banshee.NowPlaying
             Properties.Set<bool> ("Nereid.SourceContents.HeaderVisible", false);
             Properties.SetString ("ActiveSourceUIResource", "ActiveSourceUI.xml");
 
+            var simplified_conf = CreateSchema<bool> ("simplified_mode");
+
             var actions = new BansheeActionGroup ("NowPlaying");
             actions.AddImportant (new ToggleActionEntry ("SimplifyNowPlaying", null, Catalog.GetString ("Simplify"),
                 "F9", Catalog.GetString ("Simplify the Now Playing interface by hiding the source list and more"),
@@ -60,8 +62,10 @@ namespace Banshee.NowPlaying
                     bool simple = !Properties.Get<bool> ("Nereid.SimpleUI");
                     Properties.Set<bool> ("Nereid.SimpleUI", simple);
                     (actions["SimplifyNowPlaying"] as ToggleAction).Active = simple;
-                }, false)
+                    simplified_conf.Set (simple);
+                }, simplified_conf.Get ())
             );
+            Properties.Set<bool> ("Nereid.SimpleUI", simplified_conf.Get ());
             Properties.Set<BansheeActionGroup> ("ActiveSourceActions", actions);
 
             ServiceManager.SourceManager.AddSource (this);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]