connect to server after showing window

This commit is contained in:
Martin Wagner 2020-01-26 22:38:06 +01:00
parent 177bd27aa5
commit 36b023f04c
1 changed files with 4 additions and 2 deletions

View File

@ -83,8 +83,6 @@ class Client(MPDClient):
MPDClient.__init__(self)
self.settings = settings
self.try_connect_default()
def try_connect_default(self):
active=self.settings.get_int("active-profile")
try:
@ -1577,6 +1575,10 @@ class MainWindow(Gtk.ApplicationWindow):
self.hbox.pack_end(menu_button, False, False, 0)
self.add(self.vbox)
#connect client
self.client.try_connect_default()
self.show_all()
def update(self, app): #update title and send notify