diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-28 08:22:03 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-30 08:47:21 -0600 |
commit | 558e9d335a287a0ef985544cd583c0722d943c35 (patch) | |
tree | 2d57da00c22f339369ccf6eeb8dd4c3dd406116c /ui | |
parent | manager: clean stale adapters on startup (diff) | |
download | wireguard-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.go | 2 |
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 |