mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 19:20:52 +00:00
cancellable search, strongly typed configuraion fields (later they will be listed on the advanced settings page)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui;
|
||||
|
||||
import com.jpexs.decompiler.flash.Configuration;
|
||||
import com.jpexs.decompiler.flash.configuration.Configuration;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Container;
|
||||
import java.awt.FlowLayout;
|
||||
@@ -50,7 +50,7 @@ public class SelectLanguageDialog extends AppDialog implements ActionListener {
|
||||
cnt1.add(cnt, BorderLayout.CENTER);
|
||||
|
||||
|
||||
String currentLanguage = Configuration.getConfig("locale", Locale.getDefault().getLanguage());
|
||||
String currentLanguage = Configuration.locale.get(Locale.getDefault().getLanguage());
|
||||
boolean found = false;
|
||||
int enIndex = 0;
|
||||
for (String code : languages) {
|
||||
@@ -111,7 +111,7 @@ public class SelectLanguageDialog extends AppDialog implements ActionListener {
|
||||
if (newLanguage.equals("en")) {
|
||||
newLanguage = "";
|
||||
}
|
||||
Configuration.setConfig("locale", newLanguage);
|
||||
Configuration.locale.set(newLanguage);
|
||||
Locale.setDefault(Locale.forLanguageTag(newLanguage));
|
||||
updateLanguage();
|
||||
setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user