We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64de20a commit ba0411cCopy full SHA for ba0411c
1 file changed
src/main/java/the/bytecode/club/bytecodeviewer/cli/actions/commands/LanguageCommand.java
@@ -4,6 +4,9 @@
4
import the.bytecode.club.bytecodeviewer.Configuration;
5
import the.bytecode.club.bytecodeviewer.cli.CLICommand;
6
import the.bytecode.club.bytecodeviewer.translation.Language;
7
+import the.bytecode.club.bytecodeviewer.util.MiscUtils;
8
+
9
+import javax.swing.*;
10
11
/**
12
* @author Konloch
@@ -102,7 +105,8 @@ public void runCommand(CommandLine cmd)
102
105
{
103
106
System.out.println("Changing language to: " + language);
104
107
- Configuration.language = language;
108
+ Language finalLanguage = language;
109
+ SwingUtilities.invokeLater(()-> MiscUtils.setLanguage(finalLanguage));
110
}
111
else
112
0 commit comments