mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-26 22:41:59 -04:00
refactoring of settings class
This commit is contained in:
parent
17dacd9dba
commit
6606a7aae0
@ -556,7 +556,7 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
|
|||||||
ToolTipAction editSettings = new ToolTipAction(Lang.get("menu_editSettings")) {
|
ToolTipAction editSettings = new ToolTipAction(Lang.get("menu_editSettings")) {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
ElementAttributes modified = new AttributeDialog(Main.this, Settings.SETTINGS_KEYS, Settings.getInstance().getAttributes()).showDialog();
|
ElementAttributes modified = new AttributeDialog(Main.this, Settings.getInstance().getKeys(), Settings.getInstance().getAttributes()).showDialog();
|
||||||
if (modified != null) {
|
if (modified != null) {
|
||||||
FormatToExpression.setDefaultFormat(modified.get(Keys.SETTINGS_EXPRESSION_FORMAT));
|
FormatToExpression.setDefaultFormat(modified.get(Keys.SETTINGS_EXPRESSION_FORMAT));
|
||||||
if (!Settings.getInstance().getAttributes().equalsKey(Keys.SETTINGS_LANGUAGE, modified)
|
if (!Settings.getInstance().getAttributes().equalsKey(Keys.SETTINGS_LANGUAGE, modified)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user