浏览代码

Any key after restore fails

Bob Mottram 7 年前
父节点
当前提交
e18eb98ded
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/freedombone-controlpanel

+ 2
- 0
src/freedombone-controlpanel 查看文件

@@ -1175,6 +1175,7 @@ function restore_data_from_storage {
1175 1175
             $restore_command
1176 1176
             retcode="$?"
1177 1177
             if [[ "$retcode" != "0" ]]; then
1178
+                any_key
1178 1179
                 if [[ "$1" == "local" ]]; then
1179 1180
                     dialog --title $"Restore all apps from USB" \
1180 1181
                            --msgbox $"Restore failed with code $retcode" 6 60
@@ -1199,6 +1200,7 @@ function restore_data_from_storage {
1199 1200
         $restore_command "${app_name}"
1200 1201
         retcode="$?"
1201 1202
         if [[ "$retcode" != "0" ]]; then
1203
+            any_key
1202 1204
             dialog --title $"Restore apps from USB" \
1203 1205
                    --msgbox $"Restore of ${app_name} failed with code $retcode" 6 60
1204 1206
             return