mirror of
https://github.com/fofolee/uTools-ProcessKiller.git
synced 2025-06-08 06:16:21 +08:00
获取任务失败时提示
This commit is contained in:
parent
b77e0e4841
commit
232c2435bd
@ -98,6 +98,7 @@ utools.onPluginEnter( async ({ code, type, payload }) => {
|
||||
}
|
||||
// var initTime = new Date().getTime();
|
||||
tasks = await tasklist();
|
||||
if (tasks) {
|
||||
window.text = '';
|
||||
// 读取进程耗时
|
||||
// var tasksLoadedTime = new Date().getTime();
|
||||
@ -109,7 +110,7 @@ utools.onPluginEnter( async ({ code, type, payload }) => {
|
||||
// iconsCachedTime -= (tasksLoadedTime + initTime);
|
||||
// console.log(iconsCachedTime);
|
||||
show(tasks, window.text);
|
||||
sign = isWin ? 'Alt' : '⌘';
|
||||
var sign = isWin ? 'Alt' : '⌘';
|
||||
$('.numbers').html(`
|
||||
<div>${sign}+1</div>
|
||||
<div>${sign}+2</div>
|
||||
@ -133,6 +134,9 @@ utools.onPluginEnter( async ({ code, type, payload }) => {
|
||||
utools.db.put(update);
|
||||
$('.numbers').html('');
|
||||
})
|
||||
} else {
|
||||
return utools.showNotification('获取进程列表失败')
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user