feat: install-locally button, log delete result
This commit is contained in:
@@ -114,6 +114,13 @@ async function showWebAppMenu(app, x, y) {
|
||||
bridge.call('deleteLocalPackage', app.id).then(() => refreshList()).catch(() => {});
|
||||
});
|
||||
}
|
||||
// 安装到本地(本地无包 + 云端有离线包:预下载到本地,不打开)
|
||||
// Install locally (no local package + cloud offline package: pre-download without opening)
|
||||
if (!hasLocal && app.offline) {
|
||||
addItem('安装到本地', () => {
|
||||
bridge.call('updateOfflinePackage', app.id).then(() => refreshList()).catch(() => {});
|
||||
});
|
||||
}
|
||||
// 导入
|
||||
addItem('导入离线包', () => {
|
||||
bridge.call('importOfflinePackage', app.id).catch(() => {});
|
||||
|
||||
Reference in New Issue
Block a user