From 79c519b1f3deb628df4da7a2c80b12973926b286 Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Mon, 11 Jan 2021 00:44:37 +0300 Subject: [PATCH] Hotfix for 'open recent tab' feature: if non-functional tab selected then 'Games' (default) tab would be opened. --- src/main/java/nsusbloader/Controllers/NSLMainController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/nsusbloader/Controllers/NSLMainController.java b/src/main/java/nsusbloader/Controllers/NSLMainController.java index 152af1d..618cee9 100644 --- a/src/main/java/nsusbloader/Controllers/NSLMainController.java +++ b/src/main/java/nsusbloader/Controllers/NSLMainController.java @@ -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); } }