bugfix: [48]; win应用搜索出现卸载应用问题。

ref: 优化rubick removeFeature API
This commit is contained in:
muwoo
2021-09-28 11:25:51 +08:00
parent 79b60b89a5
commit 50452bc36b
3 changed files with 5 additions and 11 deletions

View File

@@ -104,18 +104,10 @@ const touchBar = new TouchBar({
]
})
let intervalObj;
const start = (window) => {
window.on('blur', () => {
clearInterval(intervalObj);
});
window.on('focus', () => {
intervalObj = setInterval(() => {
updateData();
}, 1000);
updateData();
});
updateData();
}
export default {

View File

@@ -47,7 +47,7 @@ function fileDisplay(filePath){
const appName = filename.split('.')[0];
const keyWords = [appName];
const appDetail = shell.readShortcutLink(filedir);
if (!appDetail.target) return;
if (!appDetail.target || appDetail.target.toLowerCase().indexOf('unin') >= 0) return;
if (isZhRegex.test(appName)) {
const py = translate(appName);