diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tunneleditdialog.go | 2 | ||||
-rw-r--r-- | ui/tunnelspage.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/tunneleditdialog.go b/ui/tunneleditdialog.go index 0abed9ed..7efd68d2 100644 --- a/ui/tunneleditdialog.go +++ b/ui/tunneleditdialog.go @@ -299,7 +299,7 @@ func (dlg *TunnelEditDialog) onSaveButtonClicked() { } for _, name := range names { - if name == newName { + if strings.ToLower(name) == strings.ToLower(newName) { walk.MsgBox(dlg, "Invalid configuration", fmt.Sprintf("Another tunnel already exists with the name ā%sā.", newName), walk.MsgBoxIconWarning) return } diff --git a/ui/tunnelspage.go b/ui/tunnelspage.go index a74b6210..8650ece6 100644 --- a/ui/tunnelspage.go +++ b/ui/tunnelspage.go @@ -216,7 +216,7 @@ func (tp *TunnelsPage) importFiles(paths []string) { configCount := 0 for _, unparsedConfig := range unparsedConfigs { if existingLowerTunnels[strings.ToLower(unparsedConfig.Name)] { - lastErr = fmt.Errorf("The tunnel \"%s\" already exists", unparsedConfig.Name) + lastErr = fmt.Errorf("Another tunnel already exists with the name ā%sā", unparsedConfig.Name) continue } config, err := conf.FromWgQuick(unparsedConfig.Config, unparsedConfig.Name) |