Skip to content

Commit

Permalink
Remove unused system browser setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdanggg2 committed Jul 3, 2024
1 parent 57ea682 commit 016cb3b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ Settings.RESTART_BTN=Restart program
Settings.RESTART_FAIL=Cannot restart. Please restart manually!
Settings.RESTART_MSG=Please restart the program for\nthese settings to take effect!
Settings.RESTORE=Restore to factory settings
Settings.USE_SYS_BROWSER=Use System Browser (Beta)
Settings.WIN_TITLE=Settings

Settings.Control.DRAG=Drag map using:
Expand Down
1 change: 0 additions & 1 deletion resources/messages_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ Settings.RESTART_BTN=プログラムを再起動
Settings.RESTART_FAIL=再起動に失敗しました。手動で再起動してください!
Settings.RESTART_MSG=これらの設定を有効にするには\nプログラムを再起動してください!
Settings.RESTORE=初期設定に戻す
Settings.USE_SYS_BROWSER=システムブラウザーを使用する (ベータ)
Settings.WIN_TITLE=設定

Settings.Control.DRAG=マップのドラッグ:
Expand Down
1 change: 0 additions & 1 deletion resources/messages_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ Settings.RESTART_BTN=重新启动程序
Settings.RESTART_FAIL=无法重新启动。请手动重启!(〃` 3′〃)
Settings.RESTART_MSG=请重新启动程序以使这些设置生效!
Settings.RESTORE=恢复为默认设置
Settings.USE_SYS_BROWSER=使用系统浏览器(测试功能)
Settings.WIN_TITLE=设置

Settings.Control.DRAG=拖动地图:
Expand Down
14 changes: 0 additions & 14 deletions src/org/jmc/gui/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public class Settings extends JmcFrame implements WindowListener, ChangeListener

JComboBox<String> cbMove, cbSelect, cbLang;
JTextArea taRestart;
JCheckBox chckbxUseSystemBrowser;
JSpinner spPrevThreads;
JmcPackList listPacks;
JCheckBox chckbxUsePackDefault;
Expand Down Expand Up @@ -192,16 +191,6 @@ public void actionPerformed(ActionEvent e) {
mp.add(pSelect);
mp.add(pLang);

JPanel pUseSystemBrowser = new JPanel();
pUseSystemBrowser.setMaximumSize(new Dimension(32767, 50));
mp.add(pUseSystemBrowser);
pUseSystemBrowser.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));

chckbxUseSystemBrowser = new JCheckBox(Messages.getString("Settings.USE_SYS_BROWSER"));
chckbxUseSystemBrowser.setAlignmentX(Component.CENTER_ALIGNMENT);
pUseSystemBrowser.add(chckbxUseSystemBrowser);
chckbxUseSystemBrowser.addActionListener(saveAction);

JPanel pPrevThreads = new JPanel();
pPrevThreads.setMaximumSize(new Dimension(32767, 50));
mp.add(pPrevThreads);
Expand Down Expand Up @@ -452,7 +441,6 @@ private void loadSettings() {
cbMove.setSelectedIndex(prefs.getInt("MOVE_ACTION", 1));
cbSelect.setSelectedIndex(prefs.getInt("SELECT_ACTION", 0));
cbLang.setSelectedIndex(prefs.getInt("LANGUAGE", 0));
chckbxUseSystemBrowser.setSelected(prefs.getBoolean("USE_SYSTEM_BROWSER", true));
spPrevThreads.setValue(prefs.getInt("PREVIEW_THREADS", 8));
listPacks.loadPrefString(prefs.get("RESOURCE_PACKS", "[]"));
chckbxUsePackDefault.setSelected(prefs.getBoolean("USE_DEFAULT_RESOURCE_PACK", true));
Expand All @@ -467,7 +455,6 @@ private void saveSettings() {

prefs.putInt("MOVE_ACTION", cbMove.getSelectedIndex());
prefs.putInt("SELECT_ACTION", cbSelect.getSelectedIndex());
prefs.putBoolean("USE_SYSTEM_BROWSER", chckbxUseSystemBrowser.isSelected());
prefs.putInt("PREVIEW_THREADS", (Integer) spPrevThreads.getValue());
int l = prefs.getInt("LANGUAGE", 0);
if (cbLang.getSelectedIndex() != l) {
Expand All @@ -488,7 +475,6 @@ private void resetSettings() {
cbMove.setSelectedIndex(1);
cbSelect.setSelectedIndex(0);
cbLang.setSelectedIndex(0);
chckbxUseSystemBrowser.setSelected(true);
spPrevThreads.setValue(8);
listPacks.reset();
chckbxUsePackDefault.setSelected(true);
Expand Down

0 comments on commit 016cb3b

Please sign in to comment.