curds: Remove the placeholder before the Library node

We're putting a newline before the heading, so we don't need an empty
tree row for this.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2019-04-17 10:08:21 -04:00
parent eee4e134b0
commit 8769423fe8
2 changed files with 1 additions and 3 deletions

View File

@ -81,7 +81,6 @@ class PlaylistManager(PlaylistManagerBase):
self.append(previous.PreviousPlaylist())
self.append(Placeholder())
self.append(GenreManager())
self.append(Placeholder())
self.append(library.LibraryNode())
self.current = [ self.lookup("Collection") ]
self.track = None

View File

@ -69,8 +69,7 @@ class TestPlaylistManager(unittest.TestCase):
self.assertEqual( self.playman[1], self.playman.lookup("Previous"))
self.assertIsInstance(self.playman[2], manager.Placeholder)
self.assertEqual( self.playman[3], self.playman.lookup("Genre"))
self.assertIsInstance(self.playman[4], manager.Placeholder)
self.assertEqual( self.playman[5], self.playman.lookup("Libraries"))
self.assertEqual( self.playman[4], self.playman.lookup("Libraries"))
self.assertIsNone(self.playman[999])
for i in range(len(self.playman)):