summaryrefslogtreecommitdiff
path: root/src/main/java/cuchaz/enigma/config/Config.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cuchaz/enigma/config/Config.java')
-rw-r--r--src/main/java/cuchaz/enigma/config/Config.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/cuchaz/enigma/config/Config.java b/src/main/java/cuchaz/enigma/config/Config.java
index e2afb01..a00fe2d 100644
--- a/src/main/java/cuchaz/enigma/config/Config.java
+++ b/src/main/java/cuchaz/enigma/config/Config.java
@@ -4,6 +4,8 @@ import com.bulenkov.darcula.DarculaLaf;
4import com.google.common.io.Files; 4import com.google.common.io.Files;
5import com.google.gson.*; 5import com.google.gson.*;
6 6
7import cuchaz.enigma.utils.I18n;
8
7import javax.swing.*; 9import javax.swing.*;
8import javax.swing.plaf.metal.MetalLookAndFeel; 10import javax.swing.plaf.metal.MetalLookAndFeel;
9import java.awt.*; 11import java.awt.*;
@@ -165,6 +167,8 @@ public class Config {
165 public Integer lineNumbersBackground; 167 public Integer lineNumbersBackground;
166 public Integer lineNumbersSelected; 168 public Integer lineNumbersSelected;
167 public Integer lineNumbersForeground; 169 public Integer lineNumbersForeground;
170
171 public String language = I18n.DEFAULT_LANGUAGE;
168 172
169 public LookAndFeel lookAndFeel = LookAndFeel.DEFAULT; 173 public LookAndFeel lookAndFeel = LookAndFeel.DEFAULT;
170 174
@@ -213,6 +217,7 @@ public class Config {
213 public void reset() throws IOException { 217 public void reset() throws IOException {
214 this.lookAndFeel = LookAndFeel.DEFAULT; 218 this.lookAndFeel = LookAndFeel.DEFAULT;
215 this.lookAndFeel.apply(this); 219 this.lookAndFeel.apply(this);
220 this.language = I18n.DEFAULT_LANGUAGE;
216 this.saveConfig(); 221 this.saveConfig();
217 } 222 }
218 223