Skip to content

Commit

Permalink
Code: Added logging for settings dialog save state
Browse files Browse the repository at this point in the history
Merge Master
  • Loading branch information
GoldenGnu committed May 4, 2024
2 parents 1a59591 + ae042ba commit 5961c18
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -288,7 +292,11 @@ private void save(boolean hideWindow) {
Set<UpdateType> updates = new HashSet<>();
Settings.lock("Settings Dialog"); //Lock for Settings Dialog
for (Map.Entry<String, JSettingsPanel> 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) {
Expand Down

0 comments on commit 5961c18

Please sign in to comment.