|
3 | 3 | import ch.qos.logback.classic.Level; |
4 | 4 | import com.faforever.client.api.IceServer; |
5 | 5 | import com.faforever.client.chat.ChatColorMode; |
6 | | -import com.faforever.client.chat.ChatFormat; |
7 | 6 | import com.faforever.client.config.ClientProperties; |
8 | 7 | import com.faforever.client.fa.debugger.DownloadFAFDebuggerTask; |
9 | 8 | import com.faforever.client.fa.relay.ice.CoturnService; |
@@ -154,7 +153,6 @@ public class SettingsController extends NodeController<Node> { |
154 | 153 | public ToggleButton bottomRightToastButton; |
155 | 154 | public ComboBox<TimeInfo> timeComboBox; |
156 | 155 | public ComboBox<DateInfo> dateComboBox; |
157 | | - public ComboBox<ChatFormat> chatComboBox; |
158 | 156 | public ComboBox<UnitDataBaseType> unitDatabaseComboBox; |
159 | 157 | public CheckBox notifyOnAtMentionOnlyToggle; |
160 | 158 | public Pane languagesContainer; |
@@ -223,7 +221,6 @@ protected void onInitialize() { |
223 | 221 |
|
224 | 222 | configureTimeSetting(); |
225 | 223 | configureDateSetting(); |
226 | | - configureChatSetting(); |
227 | 224 | configureLanguageSelection(); |
228 | 225 | configureThemeSelection(); |
229 | 226 | configureToastScreen(); |
@@ -482,19 +479,6 @@ public void onDateFormatSelected() { |
482 | 479 | preferences.getLocalization().setDateFormat(dateComboBox.getValue()); |
483 | 480 | } |
484 | 481 |
|
485 | | - private void configureChatSetting() { |
486 | | - ChatPrefs chatPrefs = preferences.getChat(); |
487 | | - chatComboBox.setButtonCell(new StringListCell<>(chatFormat -> i18n.get(chatFormat.getI18nKey()), fxApplicationThreadExecutor)); |
488 | | - chatComboBox.setCellFactory(param -> new StringListCell<>(chatFormat -> i18n.get(chatFormat.getI18nKey()), fxApplicationThreadExecutor)); |
489 | | - chatComboBox.setItems(FXCollections.observableArrayList(ChatFormat.values())); |
490 | | - chatComboBox.getSelectionModel().select(chatPrefs.getChatFormat()); |
491 | | - } |
492 | | - |
493 | | - public void onChatFormatSelected() { |
494 | | - log.trace("A new chat format was selected: `{}`", chatComboBox.getValue()); |
495 | | - preferences.getChat().setChatFormat(chatComboBox.getValue()); |
496 | | - } |
497 | | - |
498 | 482 | private StringListCell<Screen> screenListCell() { |
499 | 483 | return new StringListCell<>(screen -> i18n.get("settings.screenFormat", Screen.getScreens() |
500 | 484 | .indexOf(screen) + 1), fxApplicationThreadExecutor); |
|
0 commit comments