Fix clipboard clear error when terminating copy menu

This commit is contained in:
2025-12-26 20:50:36 -05:00
parent 88c60cc036
commit cac35e1d25
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func CopyMenu(vanityPath string, decSlice []string, oldPassword string) {
go func() {
<-sigChan
if err = clip.ClearProcess(""); err != nil {
other.PrintError("Failed to clear clipboard on exit", global.ErrorClipboard)
other.PrintError("Failed to clear clipboard on exit: "+err.Error(), global.ErrorClipboard)
}
os.Exit(0)
}()