From 43adeb968445c974262c4560d5dded8dcd3ce361 Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 6 Jul 2026 21:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=9F=BA=E6=9C=AC=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- internal/ui/app.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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() } }