diff --git a/Makefile b/Makefile index e09ed09..300f6d8 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ APP_BUNDLE = $(APP_NAME).app GO = go CGO_ENABLED = 1 GIT_HASH = $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown) -VERSION = 0.1.0-$(GIT_HASH) +VERSION = 0.1.1-$(GIT_HASH) LDFLAGS = -s -w -X lmvpn/internal/ui.Version=$(VERSION) .PHONY: all build app run daemon clean vet tidy fmt icon diff --git a/internal/ui/app.go b/internal/ui/app.go index 72e0c88..62937b3 100644 --- a/internal/ui/app.go +++ b/internal/ui/app.go @@ -122,6 +122,10 @@ func (a *App) loadProfiles() { if len(names) > 0 { a.profileSelect.SetSelectedIndex(0) a.selectProfileByName(names[0]) + } else { + a.currentProfile = nil + a.profileSelect.SetSelected("") + a.profileSelect.Refresh() } }