From bfd3f884b31e22556a2fac16d867d61b009c2994 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Tue, 22 Nov 2016 18:33:53 +0500 Subject: [PATCH] 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. --- ui/mainwindow.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/mainwindow.go b/ui/mainwindow.go index f3fcf61..d32bb8b 100644 --- a/ui/mainwindow.go +++ b/ui/mainwindow.go @@ -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) {