Automatic profile selection. Fixes #14.

Automatically select first added profile on every profiles list
update. Yes, quick hack. In future we will autodetect profiles
based on server version, and profiles combobox will only be
needed for quick connect.
This commit is contained in:
Stanislav Nikitin 2016-11-22 18:33:53 +05:00
parent 7e6b698c1c
commit bfd3f884b3

View File

@ -453,6 +453,8 @@ func (m *MainWindow) loadProfiles(data map[string]string) {
m.old_profiles_count = len(ctx.Cache.Profiles)
fmt.Println("Added " + strconv.Itoa(m.old_profiles_count) + " profiles")
m.profiles.SetActive(0)
}
func (m *MainWindow) serversUpdateCompleted(data map[string]string) {