Skip to content

Commit 79c519b

Browse files
committed
Hotfix for 'open recent tab' feature: if non-functional tab selected then 'Games' (default) tab would be opened.
1 parent 4d92e53 commit 79c519b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/nsusbloader/Controllers/NSLMainController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ private void openLastOpenedTab(){
155155
private void saveLastOpenedTab(){
156156
String tabId = mainTabPane.getSelectionModel().getSelectedItem().getId();
157157
if (tabId == null || tabId.isEmpty())
158-
return;
158+
tabId = "";
159159
AppPreferences.getInstance().setLastOpenedTab(tabId);
160160
}
161161
}

0 commit comments

Comments
 (0)