Commit 9bf9db4d authored by Vadim Rutkovsky's avatar Vadim Rutkovsky

Set default toolbar state in window

parent a7590268
......@@ -219,7 +219,6 @@ class Albums(ViewContainer):
self.countQuery = Query.ALBUMS_COUNT
self._albumWidget = Widgets.AlbumWidget(player)
self.add(self._albumWidget)
self.headerBar.setState(1)
def _onStateChanged(self, widget, data=None):
if (self.headerBar.get_stack() is not None) and \
......
from gi.repository import Gtk, Gio, GLib, Tracker
from gettext import gettext as _
from gnomemusic.toolbar import Toolbar
from gnomemusic.toolbar import Toolbar, ToolbarState
from gnomemusic.player import Player, SelectionToolbar
import gnomemusic.view as Views
from gnomemusic.query import Query
......@@ -93,6 +93,7 @@ class Window(Gtk.ApplicationWindow):
self.views[0] = Views.Empty(self.toolbar, self.player)
self._stack.add_titled(self.views[0], "Empty", "Empty")
self.toolbar.setState(ToolbarState.ALBUMS)
self.toolbar.headerBar.show()
self.player.eventBox.show_all()
self._box.show()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment