mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-12-21 07:00:22 +08:00
修复下载源选择 ComboBox 过长的问题 (#2085)
This commit is contained in:
parent
109a14dd74
commit
230d6b20ab
@ -90,7 +90,7 @@ public class DownloadSettingsPage extends StackPane {
|
|||||||
|
|
||||||
JFXComboBox<String> cboDownloadSource = new JFXComboBox<>();
|
JFXComboBox<String> cboDownloadSource = new JFXComboBox<>();
|
||||||
cboDownloadSource.setConverter(stringConverter(key -> i18n("download.provider." + key)));
|
cboDownloadSource.setConverter(stringConverter(key -> i18n("download.provider." + key)));
|
||||||
downloadSourcePane.setCenter(cboDownloadSource);
|
downloadSourcePane.setRight(cboDownloadSource);
|
||||||
FXUtils.setLimitWidth(cboDownloadSource, 420);
|
FXUtils.setLimitWidth(cboDownloadSource, 420);
|
||||||
|
|
||||||
cboDownloadSource.getItems().setAll(DownloadProviders.rawProviders.keySet());
|
cboDownloadSource.getItems().setAll(DownloadProviders.rawProviders.keySet());
|
||||||
|
Loading…
Reference in New Issue
Block a user