Skip to content

Commit 1c17184

Browse files
committed
Restore the isSaved guard when seeding the standard KL windows
1 parent 789b06c commit 1c17184

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎knowledge-layout/src/main/java/dev/ikm/komet/layout/editor/StandardEditorWindows.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,10 @@ public static void ensureStandardWindows(KometPreferences standardWindowsPrefere
8383
standardWindowsPreferences.putInt(STANDARD_WINDOWS_VERSION_KEY, CURRENT_STANDARD_WINDOWS_VERSION);
8484
}
8585

86-
List<String> standardWindows = standardWindowsPreferences.getList(KL_EDITOR_WINDOWS);
87-
if (!standardWindows.contains(CONCEPT_WINDOW)) {
86+
if (!isSaved(standardWindowsPreferences, CONCEPT_WINDOW)) {
8887
saveConceptWindow(standardWindowsPreferences, viewCalculator);
8988
}
90-
if (!standardWindows.contains(PATTERN_WINDOW)) {
89+
if (!isSaved(standardWindowsPreferences, PATTERN_WINDOW)) {
9190
savePatternWindow(standardWindowsPreferences, viewCalculator);
9291
}
9392
}

0 commit comments

Comments
 (0)