aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-28 08:22:03 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-30 08:47:21 -0600
commit558e9d335a287a0ef985544cd583c0722d943c35 (patch)
tree2d57da00c22f339369ccf6eeb8dd4c3dd406116c /ui
parentmanager: clean stale adapters on startup (diff)
downloadwireguard-windows-558e9d335a287a0ef985544cd583c0722d943c35.tar.xz
wireguard-windows-558e9d335a287a0ef985544cd583c0722d943c35.zip
manager: fix nits in adapter cleanup logic and also handle ā€˜%sā€™ uniformly
Diffstat (limited to 'ui')
-rw-r--r--ui/filesave.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/filesave.go b/ui/filesave.go
index 5f78cfee..4b5c2947 100644
--- a/ui/filesave.go
+++ b/ui/filesave.go
@@ -26,7 +26,7 @@ func writeFileWithOverwriteHandling(owner walk.Form, filePath string, write func
file, err := os.OpenFile(filePath, os.O_CREATE|os.O_WRONLY|os.O_EXCL, 0600)
if err != nil {
if os.IsExist(err) {
- if walk.DlgCmdNo == walk.MsgBox(owner, "Writing file failed", fmt.Sprintf(`File "%s" already exists.
+ if walk.DlgCmdNo == walk.MsgBox(owner, "Writing file failed", fmt.Sprintf(`File ā€˜%sā€™ already exists.
Do you want to overwrite it?`, filePath), walk.MsgBoxYesNo|walk.MsgBoxDefButton2|walk.MsgBoxIconWarning) {
return false