Skip to content

Commit ba0411c

Browse files
committed
Fix Language Changing
1 parent 64de20a commit ba0411c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/the/bytecode/club/bytecodeviewer/cli/actions/commands/LanguageCommand.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import the.bytecode.club.bytecodeviewer.Configuration;
55
import the.bytecode.club.bytecodeviewer.cli.CLICommand;
66
import the.bytecode.club.bytecodeviewer.translation.Language;
7+
import the.bytecode.club.bytecodeviewer.util.MiscUtils;
8+
9+
import javax.swing.*;
710

811
/**
912
* @author Konloch
@@ -102,7 +105,8 @@ public void runCommand(CommandLine cmd)
102105
{
103106
System.out.println("Changing language to: " + language);
104107

105-
Configuration.language = language;
108+
Language finalLanguage = language;
109+
SwingUtilities.invokeLater(()-> MiscUtils.setLanguage(finalLanguage));
106110
}
107111
else
108112
{

0 commit comments

Comments
 (0)