From 72b61fc2e7575e1ad8087955fa06be9e70170b0f Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 11 Jan 2024 16:43:46 -0300 Subject: [PATCH] Save layout changes immediately when docks are resized This patch includes: * The layout is updated immediately when docks are resized (before this the layout was like a snapshot of the configuration when the layout was created or overwritten with the "New Layout" option) * Saving the active layout used in preferences.general.workspace_layout so we can restore it after restarting Aseprite * Change "UI Layout" to "Workspace Layout" * Some strings moved to en.ini file for i18n * Fixed a crash on MainWindow::onActiveViewChange() when the application was being closed --- data/pref.xml | 1 + data/strings/en.ini | 11 ++- src/app/ui/dock.cpp | 17 +++- src/app/ui/dock.h | 4 +- src/app/ui/layout.cpp | 21 ++++- src/app/ui/layout.h | 11 ++- src/app/ui/layout_selector.cpp | 142 +++++++++++++++++++++++---------- src/app/ui/layout_selector.h | 6 ++ src/app/ui/layouts.cpp | 15 +++- src/app/ui/layouts.h | 4 +- src/app/ui/main_window.cpp | 26 +++++- src/app/ui/main_window.h | 4 +- 12 files changed, 204 insertions(+), 58 deletions(-) diff --git a/data/pref.xml b/data/pref.xml index dbc557525..aee8d7900 100644 --- a/data/pref.xml +++ b/data/pref.xml @@ -157,6 +157,7 @@