功能基本实现
This commit is contained in:
@@ -10,7 +10,7 @@ APP_BUNDLE = $(APP_NAME).app
|
|||||||
GO = go
|
GO = go
|
||||||
CGO_ENABLED = 1
|
CGO_ENABLED = 1
|
||||||
GIT_HASH = $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
|
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)
|
LDFLAGS = -s -w -X lmvpn/internal/ui.Version=$(VERSION)
|
||||||
|
|
||||||
.PHONY: all build app run daemon clean vet tidy fmt icon
|
.PHONY: all build app run daemon clean vet tidy fmt icon
|
||||||
|
|||||||
@@ -122,6 +122,10 @@ func (a *App) loadProfiles() {
|
|||||||
if len(names) > 0 {
|
if len(names) > 0 {
|
||||||
a.profileSelect.SetSelectedIndex(0)
|
a.profileSelect.SetSelectedIndex(0)
|
||||||
a.selectProfileByName(names[0])
|
a.selectProfileByName(names[0])
|
||||||
|
} else {
|
||||||
|
a.currentProfile = nil
|
||||||
|
a.profileSelect.SetSelected("")
|
||||||
|
a.profileSelect.Refresh()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user