GNOME Bugzilla – Bug 561931
Shared music doesn't remember it was closed when reopening Banshee
Last modified: 2009-02-17 20:19:54 UTC
Sometimes I like to have the Shared Music item in the left panel open (with the arrow pointing down), but usually I like to have it closed (with the arrow pointing right). Regardless of how this is set when I quit Banshee, Shared Music is always open (arrow pointing down) the next time I start Banshee. Shared Music should behave the same way as other items in the left panel (like last.fm) and remember how it was set when Banshee was closed.
A quick look at the source code shows that the current state (open/closed) of the "Shared Music" item is not stored. The relevant file is src/Extensions/Banshee.Daap/Banshee.Daap/DaapContainerSource.cs I guess it would be easy to implement, using the Last.fm code as an example : in src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Radio/LastfmSource.cs, the Expand and AutoExpand properties. As I'm not using DAAP, it would be pointless for me to work on that. Any takers ?
Created attachment 128884 [details] [review] Saving the expanded state. This patch does the trick. As Bertrand suggested I copy/pasted and adapted the code from the Last.fm extension, let me know if something is not right.
Thanks, committed!