Hotfix for 'open recent tab' feature: if non-functional tab selected then 'Games' (default) tab would be opened.

This commit is contained in:
Dmitry Isaenko 2021-01-11 00:44:37 +03:00
parent 4d92e536ae
commit 79c519b1f3

View file

@ -155,7 +155,7 @@ public class NSLMainController implements Initializable {
private void saveLastOpenedTab(){
String tabId = mainTabPane.getSelectionModel().getSelectedItem().getId();
if (tabId == null || tabId.isEmpty())
return;
tabId = "";
AppPreferences.getInstance().setLastOpenedTab(tabId);
}
}