Include unit reset in reset preferences action

This commit is contained in:
SiboVG 2022-10-13 15:28:06 +02:00
parent 158aa58517
commit 15c7f3ebc2

View File

@ -100,6 +100,8 @@ public class SwingPreferences extends net.sf.openrocket.startup.Preferences {
root.node(NODENAME).removeNode();
}
PREFNODE = root.node(NODENAME);
UnitGroup.resetDefaultUnits();
storeDefaultUnits();
log.info("Cleared preferences");
} catch (BackingStoreException e) {
throw new BugException("Unable to clear preference node", e);