功能基本实现

This commit is contained in:
2026-07-06 21:08:30 +08:00
parent 5134290bf2
commit 43adeb9684
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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
+4
View File
@@ -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()
}
}