From 9350d1352545bba57e95b0dd9594c67a742b5f80 Mon Sep 17 00:00:00 2001 From: Radek Davidek Date: Wed, 25 Mar 2026 13:00:04 +0100 Subject: [PATCH] fixed app exit --- config.properties | 2 +- profiles.json | 20 ++++++++++++++++++++ src/main/java/cz/kamma/llamarunner/Main.java | 7 ++++--- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/config.properties b/config.properties index de0e50f..f827f42 100644 --- a/config.properties +++ b/config.properties @@ -1,5 +1,5 @@ #Llama Runner Configuration -#Tue Mar 24 10:22:47 CET 2026 +#Wed Mar 25 12:59:21 CET 2026 windowHeight=1189 windowWidth=711 windowX=1849 diff --git a/profiles.json b/profiles.json index 7eecddd..19342d7 100644 --- a/profiles.json +++ b/profiles.json @@ -138,5 +138,25 @@ "chatTemplateKwargs": "{\"enable_thinking\": true}", "ngl": -1, "fit": true + }, + "GLM-Flash-UD-Q6KXL-180k": { + "host": "0.0.0.0", + "port": 3080, + "parallel": 1, + "threads": 99, + "flashAttention": true, + "kvUnified": true, + "cacheTypeK": "q8_0", + "cacheTypeV": "q8_0", + "temperature": 0.6, + "topP": 0.95, + "topK": 20, + "minP": 0.0, + "ctxSize": 180000, + "enableThinking": false, + "modelPath": "/home/kamma/models/GLM-4.7-Flash-UD-Q6_K_XL.gguf", + "chatTemplateKwargs": "{\"enable_thinking\": false}", + "ngl": -1, + "fit": true } } \ No newline at end of file diff --git a/src/main/java/cz/kamma/llamarunner/Main.java b/src/main/java/cz/kamma/llamarunner/Main.java index 2a27d4b..8d33364 100644 --- a/src/main/java/cz/kamma/llamarunner/Main.java +++ b/src/main/java/cz/kamma/llamarunner/Main.java @@ -85,6 +85,7 @@ public class Main extends JFrame { setTitle("Llama Runner"); setSize(appConfig.getWindowWidth(), appConfig.getWindowHeight()); + setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); // Set application icon try { @@ -128,9 +129,9 @@ public class Main extends JFrame { addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { - SwingUtilities.invokeLater(() -> { - saveWindowConfig(); - }); + saveWindowConfig(); + dispose(); + System.exit(0); } });