From 43140e71ecab7e5a88f25b62f06f304d6f101710 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 | 19 +++++- src/app/ui/layout.h | 12 +++- src/app/ui/layout_selector.cpp | 119 +++++++++++++++++++++++---------- src/app/ui/layout_selector.h | 6 ++ src/app/ui/layouts.cpp | 12 +++- src/app/ui/layouts.h | 4 +- src/app/ui/main_window.cpp | 24 ++++++- src/app/ui/main_window.h | 4 +- 12 files changed, 181 insertions(+), 52 deletions(-) diff --git a/data/pref.xml b/data/pref.xml index 9dd2c421f..142fac394 100644 --- a/data/pref.xml +++ b/data/pref.xml @@ -167,6 +167,7 @@