Fixed favorite server addition and saving.

This commit is contained in:
2016-10-09 01:23:38 +05:00
parent 1b3b7bccf8
commit e12bcdd386
3 changed files with 9 additions and 3 deletions

View File

@@ -245,6 +245,7 @@ func (f *FavoriteDialog) saveFavorite() error {
ctx.Cache.Servers[key].Server.ExtendedConfig = f.server.ExtendedConfig
ctx.Cache.Servers[key].Server.PlayersInfo = f.server.PlayersInfo
ctx.Eventer.LaunchEvent("flushServers", map[string]string{})
ctx.Eventer.LaunchEvent("loadFavoriteServers", map[string]string{})
f.window.Destroy()