From ae042ba6ea623ef03f129cc489f12731e328076f Mon Sep 17 00:00:00 2001 From: GoldenGnu Date: Sat, 4 May 2024 12:57:07 +0200 Subject: [PATCH] Code: Added logging for settings dialog save state --- .../jeveasset/gui/dialogs/settings/SettingsDialog.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/nikr/eve/jeveasset/gui/dialogs/settings/SettingsDialog.java b/src/main/java/net/nikr/eve/jeveasset/gui/dialogs/settings/SettingsDialog.java index 3e221e074..20dbe35a5 100644 --- a/src/main/java/net/nikr/eve/jeveasset/gui/dialogs/settings/SettingsDialog.java +++ b/src/main/java/net/nikr/eve/jeveasset/gui/dialogs/settings/SettingsDialog.java @@ -56,10 +56,14 @@ import net.nikr.eve.jeveasset.i18n.GuiShared; import net.nikr.eve.jeveasset.io.shared.DesktopUtil; import net.nikr.eve.jeveasset.io.shared.DesktopUtil.HelpLink; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class SettingsDialog extends JDialogCentered { + private static final Logger LOG = LoggerFactory.getLogger(SettingsDialog.class); + private enum SettingsDialogAction { OK, CANCEL, APPLY, HELP } @@ -288,7 +292,11 @@ private void save(boolean hideWindow) { Set updates = new HashSet<>(); Settings.lock("Settings Dialog"); //Lock for Settings Dialog for (Map.Entry entry : settingsPanels.entrySet()) { - updates.add(entry.getValue().save()); + UpdateType save = entry.getValue().save(); + if (save != UpdateType.NONE) { + LOG.info(entry.getKey() + " returned " + save.name()); + } + updates.add(save); } Settings.unlock("Settings Dialog"); //Unlock for Settings Dialog if (hideWindow) {