forked from j62/ctbrec
Fill start tab combobox only once
This commit is contained in:
parent
ba4ac952e2
commit
bf8a3c7240
|
@ -680,10 +680,11 @@ public class SettingsTab extends Tab implements TabSelectionListener {
|
|||
|
||||
@Override
|
||||
public void selected() {
|
||||
startTab.getItems().clear();
|
||||
if(startTab.getItems().isEmpty()) {
|
||||
for(Tab tab : getTabPane().getTabs()) {
|
||||
startTab.getItems().add(tab.getText());
|
||||
}
|
||||
}
|
||||
String startTabName = Config.getInstance().getSettings().startTab;
|
||||
if(StringUtil.isNotBlank(startTabName)) {
|
||||
startTab.getSelectionModel().select(startTabName);
|
||||
|
|
Loading…
Reference in New Issue