From c03e980293b868b58beb0a8742af26e20262907e Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 18 Apr 2020 19:27:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmacos=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E5=88=B0=E6=B4=BB=E5=8A=A8=E7=AA=97=E5=8F=A3=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- assets/index.js | 4 +++- plugin.json | 2 +- preload.js | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) 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 }