feat: 调整侧栏全部数据样式 增加不隐藏插件执行复制的功能

This commit is contained in:
ZiuChen
2022-09-04 22:13:50 +08:00
parent 3807c73149
commit 52a3005d7e
4 changed files with 15 additions and 9 deletions

View File

@@ -161,7 +161,7 @@ const watchClipboard = async (db, fn) => {
}, 250)
}
const copy = (item) => {
const copy = (item, isHideMainWindow = true) => {
switch (item.type) {
case 'text':
utools.copyText(item.data)
@@ -174,7 +174,7 @@ const copy = (item) => {
utools.copyFile(paths)
break
}
utools.hideMainWindow()
isHideMainWindow && utools.hideMainWindow()
}
const paste = () => {