From c4952cd68ae6bc5f1e06c37c7b81223f0bee19dc Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Sun, 13 Nov 2016 13:48:29 +0100 Subject: [PATCH] Minor fix --- src/Launcher/Main.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Launcher/Main.java b/src/Launcher/Main.java index 7945f58..f9f2ef5 100644 --- a/src/Launcher/Main.java +++ b/src/Launcher/Main.java @@ -86,7 +86,7 @@ public class Main extends Application { updateTabSelection(Modpack_btn, TabType.MAIN); Tabs.switchTab("modpacks", tab); if(stringUpdater!=null && stringUpdater.isAlive()) stringUpdater.cancel(); - stringUpdater = new Async(SafeReflection.getFirstMethod(Main.class, "detectStringUpdate"), Tabs.load("settings").lookup("#search-modpacks")); + stringUpdater = new Async(SafeReflection.getFirstMethod(Main.class, "detectStringUpdate"), Tabs.load("modpacks").lookup("#search-modpacks")); } }); @@ -127,7 +127,10 @@ public class Main extends Application { } }); - Tabs.switchTab(settings_activeTab.getId().equals("#Settings-Gen-btn")?"settings_generic":"settings_minecraft", (Pane) n.lookup("#Settings-Pane")); + + System.out.println(settings_activeTab.getId()); + + Tabs.switchTab(settings_activeTab.getId().equals("Settings-Gen-btn") ? "settings_generic" : "settings_minecraft", (Pane) n.lookup("#Settings-Pane")); } }); @@ -177,7 +180,7 @@ public class Main extends Application { - public enum TabType{ + enum TabType{ SETTINGS, MAIN } }