From 775ae300618776fa50f757b577cac725e66856b0 Mon Sep 17 00:00:00 2001 From: marhali Date: Mon, 11 Dec 2023 18:33:17 +0100 Subject: [PATCH] remove saveAll action on reload Application state should be consistent even without save action --- src/main/java/de/marhali/easyi18n/InstanceManager.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/de/marhali/easyi18n/InstanceManager.java b/src/main/java/de/marhali/easyi18n/InstanceManager.java index 8eddfae..829c60a 100644 --- a/src/main/java/de/marhali/easyi18n/InstanceManager.java +++ b/src/main/java/de/marhali/easyi18n/InstanceManager.java @@ -72,7 +72,6 @@ public class InstanceManager { * Fetches data from persistence layer and notifies all endpoints via {@link DataBus}. */ public void reload() { - ApplicationManager.getApplication().saveAll(); // Save opened files (required if new locales were added) store.loadFromPersistenceLayer((success) -> bus.propagate().onUpdateData(store.getData())); }