feat: add reinstall button to long-press menu

This commit is contained in:
2026-08-17 20:04:16 +08:00
parent bb714d8de3
commit 5901ce98e2
@@ -101,6 +101,13 @@ async function showWebAppMenu(app, x, y) {
bridge.call('updateOfflinePackage', app.id).catch(() => {}); bridge.call('updateOfflinePackage', app.id).catch(() => {});
}); });
} }
// 重装(本地有包 + 云端有离线包:强制删除重下,无论版本)
// Reinstall (local + cloud offline package: force delete and re-download, any version)
if (hasLocal && app.offline) {
addItem('重装离线包', () => {
bridge.call('updateOfflinePackage', app.id).then(() => refreshList()).catch(() => {});
});
}
// 删除(本地有包) // 删除(本地有包)
if (hasLocal) { if (hasLocal) {
addItem('删除本地包', () => { addItem('删除本地包', () => {