|
|
@@ -303,7 +303,7 @@ function uploadUserAppPkg(input) {
|
|
|
}
|
|
|
|
|
|
async function importUserAppPkg(file) {
|
|
|
- userAppOperating = true; updateAppInstallButtons(4);
|
|
|
+ userAppOperating = true; stopAppInstallStatusRefresh(); updateAppInstallButtons(4);
|
|
|
setText("bvar5", "正在导入当前上传的用户应用安装包,请稍候...", "page6");
|
|
|
|
|
|
try {
|
|
|
@@ -327,7 +327,7 @@ async function importUserAppPkg(file) {
|
|
|
setText("bvar5", "导入过程中发生错误: " + err.message, "page6");
|
|
|
return false;
|
|
|
} finally {
|
|
|
- userAppOperating = false;
|
|
|
+ userAppOperating = false; startAppInstallStatusRefresh();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -340,7 +340,7 @@ async function onBtn3Click() {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- userAppOperating = true; updateAppInstallButtons(4);
|
|
|
+ userAppOperating = true; stopAppInstallStatusRefresh(); updateAppInstallButtons(4);
|
|
|
setText("bvar5", "正在删除当前已上传的用户应用安装包,请稍候...", "page6");
|
|
|
|
|
|
try {
|
|
|
@@ -358,13 +358,13 @@ async function onBtn3Click() {
|
|
|
}
|
|
|
} catch (err) {
|
|
|
setText("bvar5", "删除过程中发生错误: " + err.message, "page6");
|
|
|
+ } finally {
|
|
|
+ userAppOperating = false; startAppInstallStatusRefresh();
|
|
|
}
|
|
|
-
|
|
|
- userAppOperating = false;
|
|
|
}
|
|
|
|
|
|
async function onBtn4Click() {
|
|
|
- userAppOperating = true; updateAppInstallButtons(4);
|
|
|
+ userAppOperating = true; stopAppInstallStatusRefresh(); updateAppInstallButtons(4);
|
|
|
setText("bvar5", "正在使用当前安装包安装用户应用,请稍候...", "page6");
|
|
|
|
|
|
try {
|
|
|
@@ -382,9 +382,9 @@ async function onBtn4Click() {
|
|
|
}
|
|
|
} catch (err) {
|
|
|
setText("bvar5", "安装过程中发生错误: " + err.message, "page6");
|
|
|
+ } finally {
|
|
|
+ userAppOperating = false; startAppInstallStatusRefresh();
|
|
|
}
|
|
|
-
|
|
|
- userAppOperating = false;
|
|
|
}
|
|
|
|
|
|
async function onBtn5Click() {
|
|
|
@@ -392,7 +392,7 @@ async function onBtn5Click() {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- userAppOperating = true; updateAppInstallButtons(4);
|
|
|
+ userAppOperating = true; stopAppInstallStatusRefresh(); updateAppInstallButtons(4);
|
|
|
setText("bvar5", "正在卸载当前已经安装的用户应用,请稍候...", "page6");
|
|
|
|
|
|
try {
|
|
|
@@ -410,9 +410,9 @@ async function onBtn5Click() {
|
|
|
}
|
|
|
} catch (err) {
|
|
|
setText("bvar5", "卸载过程中发生错误: " + err.message, "page6");
|
|
|
+ } finally {
|
|
|
+ userAppOperating = false; startAppInstallStatusRefresh();
|
|
|
}
|
|
|
-
|
|
|
- userAppOperating = false;
|
|
|
}
|
|
|
|
|
|
function onBtn6Click() {
|