finish refactor cleanup

This commit is contained in:
Drew Weymouth
2023-05-17 17:49:34 -07:00
parent facf59a660
commit c517c40c22
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ func (a *App) setupMPV() error {
}
func (a *App) LoginToDefaultServer(string) error {
serverCfg := a.Config.GetDefaultServer()
serverCfg := a.ServerManager.GetDefaultServer()
if serverCfg == nil {
return ErrNoServers
}
+1 -1
View File
@@ -47,7 +47,7 @@ func (s *ServerManager) ConnectToServer(conf *ServerConfig, password string) err
s.Server.SetPrefetchCoverCallback(s.prefetchCoverCB)
s.LoggedInUser = conf.Username
s.ServerID = conf.ID
s.config.SetDefaultServer(s.ServerID)
s.SetDefaultServer(s.ServerID)
for _, cb := range s.onServerConnected {
cb()
}