From a5e3afa7e2a93cd82767f691f7fa3a01774097b5 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 11 Oct 2021 20:40:26 +0300 Subject: [PATCH] Start the autosave timer if the user presses X on the backup confirmation dialog --- src/Main.gd | 4 ++++ src/Main.tscn | 1 + 2 files changed, 5 insertions(+) diff --git a/src/Main.gd b/src/Main.gd index 0321afbb9..4cb005aa2 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -401,3 +401,7 @@ func _on_BackupConfirmation_delete(project_paths : Array, backup_paths : Array) # Reopen last project if Global.open_last_project: load_last_project() + + +func _on_BackupConfirmation_popup_hide() -> void: + OpenSave.autosave_timer.start() diff --git a/src/Main.tscn b/src/Main.tscn index c229cb804..9206d254f 100644 --- a/src/Main.tscn +++ b/src/Main.tscn @@ -139,3 +139,4 @@ visible = false [connection signal="popup_hide" from="Dialogs/QuitAndSaveDialog" to="." method="_can_draw_true"] [connection signal="popup_hide" from="Dialogs/ErrorDialog" to="." method="_can_draw_true"] [connection signal="popup_hide" from="Dialogs/BackupConfirmation" to="." method="_can_draw_true"] +[connection signal="popup_hide" from="Dialogs/BackupConfirmation" to="." method="_on_BackupConfirmation_popup_hide"]