From 9f9666e63cba482c3a7eb8f3285e3dff900bd814 Mon Sep 17 00:00:00 2001 From: Andrew Auclair Date: Wed, 10 Jun 2026 11:11:59 -0400 Subject: [PATCH 1/2] Store last persisted layout after loading Make sure that the lastPersistedLayout is set when restoring a layout. Without this assignment, we have issues persisting the layout properly the first time after restore. --- .../github/andrewauclair/moderndocking/api/AppStateAPI.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docking-api/src/io/github/andrewauclair/moderndocking/api/AppStateAPI.java b/docking-api/src/io/github/andrewauclair/moderndocking/api/AppStateAPI.java index 17a1f02a..efe7f427 100644 --- a/docking-api/src/io/github/andrewauclair/moderndocking/api/AppStateAPI.java +++ b/docking-api/src/io/github/andrewauclair/moderndocking/api/AppStateAPI.java @@ -222,12 +222,16 @@ public boolean restore() throws DockingLayoutException { ApplicationLayout layout = docking.getLayoutPersistence().loadApplicationLayoutFromFile(file); + lastPersistedLayout = layout; + docking.getDockingState().restoreApplicationLayout(layout); return true; } catch (Exception e) { if (defaultAppLayout != null) { + lastPersistedLayout = defaultAppLayout; + docking.getDockingState().restoreApplicationLayout(defaultAppLayout); } From 40a4e5f609247423af5674dae446f327b7c26beb Mon Sep 17 00:00:00 2001 From: Andrew Auclair Date: Wed, 10 Jun 2026 11:12:46 -0400 Subject: [PATCH 2/2] Bump version from 1.4.8 to 1.4.9 --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 99993561..92273271 100644 --- a/build.gradle +++ b/build.gradle @@ -22,7 +22,7 @@ subprojects { maven { url = "https://central.sonatype.com/repository/maven-snapshots/" } } - version = "1.4.8" + version = "1.4.9" ext { flatLafVersion = "3.7.1" @@ -50,4 +50,4 @@ sonar { property "sonar.exclusions", "**/demo-single-app/**,**/demo-multi-app/**" property "sonar.coverage.exclusions", "**/*" } -} \ No newline at end of file +}