Skip to content

Commit 96b9c28

Browse files
committed
fix(gui): 🐛 allow backups after completion
1 parent 6a0dece commit 96b9c28

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

apps/rgsm-gui/src/pages/Management/[name].vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ async function fetchCurrentDevice() {
111111
fetchCurrentDevice();
112112
113113
const describe = ref('');
114-
let backup_button_time_limit = true; // 两次备份时间间隔1秒
115114
let backup_button_backup_limit = true; // 上次没备份好禁止再备份或读取
116115
let apply_button_apply_limit = true; // 上次未恢复好禁止读取或备份
117116
@@ -487,10 +486,6 @@ ${items}`,
487486
}
488487
489488
async function send_save_to_background() {
490-
if (!backup_button_time_limit) {
491-
notifyError($t('manage.save_too_fast_error'));
492-
return;
493-
}
494489
if (!backup_button_backup_limit) {
495490
notifyError($t('manage.last_backup_unfinished_error'));
496491
return;
@@ -505,7 +500,6 @@ async function send_save_to_background() {
505500
return;
506501
}
507502
508-
backup_button_time_limit = false;
509503
backup_button_backup_limit = false;
510504
511505
const activityId = addActivity({
@@ -537,9 +531,6 @@ async function send_save_to_background() {
537531
refresh_backups_info();
538532
539533
describe.value = '';
540-
setTimeout(() => {
541-
backup_button_time_limit = true;
542-
}, 1000);
543534
}
544535
545536
async function create_new_save() {

0 commit comments

Comments
 (0)