From 433af0594f9629733b345848fcfdc779af600e3e Mon Sep 17 00:00:00 2001 From: prak132 Date: Thu, 2 Jan 2025 15:07:30 -0800 Subject: [PATCH] Update Close button to fix issue of the app not closing properly --- src/main/java/com/funkylogclient/FunkyLogs.java | 2 +- src/main/java/com/funkylogclient/SidebarTopSection.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/funkylogclient/FunkyLogs.java b/src/main/java/com/funkylogclient/FunkyLogs.java index 0d5467c..7bf08c1 100644 --- a/src/main/java/com/funkylogclient/FunkyLogs.java +++ b/src/main/java/com/funkylogclient/FunkyLogs.java @@ -44,7 +44,7 @@ public class FunkyLogs extends Application { @Override public void start(Stage primaryStage) { FunkyLogSorter.makeNewLogFile(); - primaryStage.setTitle("FunkyLogs v1.1.2"); + primaryStage.setTitle("FunkyLogs v1.1.3"); root = new BorderPane(); root.getStyleClass().add("root"); diff --git a/src/main/java/com/funkylogclient/SidebarTopSection.java b/src/main/java/com/funkylogclient/SidebarTopSection.java index 0eba13c..6c88eea 100644 --- a/src/main/java/com/funkylogclient/SidebarTopSection.java +++ b/src/main/java/com/funkylogclient/SidebarTopSection.java @@ -34,7 +34,7 @@ public static HBox getTopSection(URL logoURL, URL exitImgURL, Stage primaryStage hoverColorAdjust.setBrightness(0.5); exitImgBox.setOnMouseClicked((MouseEvent e) -> { - primaryStage.close(); + System.exit(0); }); exitImgBox.setOnMouseEntered((MouseEvent e) -> { exitImage.setEffect(hoverColorAdjust);