From 1b62515cd2debf0e4ad72ba353b354a9c421f859 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 27 May 2019 11:10:52 -0300 Subject: [PATCH] Add "Recover Files..." option in Home tab We've changed the way the "recover files" option works: * Now it's an option that is always available (so we can open files even from sessions that were correctly closed in the past) * We can open sessions from other Aseprite versions (as in a "best effort" approach, if it works, ok, if it doesn't -> contact user support) --- data/extensions/aseprite-theme/theme.xml | 5 +- data/pref.xml | 2 + data/strings/en.ini | 32 ++++- data/widgets/home_view.xml | 10 +- data/widgets/options.xml | 15 ++- src/app/app.cpp | 46 +++++-- src/app/commands/cmd_options.cpp | 16 +++ src/app/crash/backup_observer.cpp | 20 +-- src/app/crash/backup_observer.h | 7 +- src/app/crash/data_recovery.cpp | 152 +++++++++++++++++------ src/app/crash/data_recovery.h | 29 ++++- src/app/crash/recovery_config.h | 25 ++++ src/app/crash/session.cpp | 100 +++++++++++++-- src/app/crash/session.h | 10 +- src/app/ui/data_recovery_view.cpp | 107 +++++++++++++--- src/app/ui/data_recovery_view.h | 14 ++- src/app/ui/home_view.cpp | 25 ++-- src/app/ui/home_view.h | 4 +- src/app/ui/main_window.cpp | 7 +- src/app/ui/main_window.h | 6 +- 20 files changed, 519 insertions(+), 113 deletions(-) create mode 100644 src/app/crash/recovery_config.h diff --git a/data/extensions/aseprite-theme/theme.xml b/data/extensions/aseprite-theme/theme.xml index e94b95192..f27eef9c5 100644 --- a/data/extensions/aseprite-theme/theme.xml +++ b/data/extensions/aseprite-theme/theme.xml @@ -638,7 +638,6 @@ - + diff --git a/data/pref.xml b/data/pref.xml index 5bd153c7b..f0b921cf7 100644 --- a/data/pref.xml +++ b/data/pref.xml @@ -132,6 +132,8 @@