diff --git a/README.md b/README.md index eac01cd..2b4ac20 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 快捷命令 V1.5.0 +# 快捷命令 V1.5.1 ## 简介 @@ -6,6 +6,10 @@ ### 更新 +#### v1.5.1 +- 修复macOS下新增命令界面排版错误的问题 +- 修复macOS下使用shell脚本且发送输出结果到活动窗口时结果不正确的问题 + #### v1.5.0 ##### 功能更新 diff --git a/assets/index.js b/assets/index.js index 4bb9d3c..79e4d80 100644 --- a/assets/index.js +++ b/assets/index.js @@ -98,7 +98,9 @@ function runCmd(cmd, option, codec, output) { var historyData = storeClip(); copyTo(stdout); paste(); - restoreClip(historyData); + setTimeout(() => { + restoreClip(historyData); + }, 500); break; case "notice": // 发送系统通知 diff --git a/plugin.json b/plugin.json index 1fcace9..b4b7d71 100644 --- a/plugin.json +++ b/plugin.json @@ -4,7 +4,7 @@ "main": "index.html", "homepage": "https://github.com/fofolee/uTools-QuickerCommand", "publishPage": "https://yuanliao.info/d/424", - "version": "1.5.0", + "version": "1.5.1", "author": "云之轩", "logo": "logo.png", "platform": [ "win32", "darwin", "linux" ], diff --git a/preload.js b/preload.js index 8e588f2..a7891fa 100644 --- a/preload.js +++ b/preload.js @@ -115,7 +115,9 @@ getSelectText = () => { clipboard.writeText(''); copy(); var selectText = clipboard.readText() - restoreClip(historyData) + setTimeout(() => { + restoreClip(historyData) + }, 500); return selectText }