Closes #77: fix state save issues when no server is yet selected

This commit is contained in:
Sumner Evans
2020-01-28 08:44:55 -07:00
parent 5949aa8658
commit b9a368b714

View File

@@ -597,7 +597,8 @@ class SublimeMusicApp(Gtk.Application):
self.state.save_config()
def on_connected_server_changed(self, action, current_server):
self.state.save()
if self.state.config.current_server >= 0:
self.state.save()
self.state.config.current_server = current_server
self.state.save_config()