From 19ac9d0867752bb8eababffe8a31296230178112 Mon Sep 17 00:00:00 2001 From: Filippo Pedrazzini Date: Wed, 7 Jun 2023 17:37:11 +0200 Subject: [PATCH] changed screen dim, name and handle on stop logic (#98) --- src-tauri/src/main.rs | 6 ++---- src-tauri/tauri.conf.json | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 2f9deb3f..f8eeebc7 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -158,10 +158,8 @@ fn main() { match event { WindowEvent::CloseRequested { .. } => { // stop services - let url = "http://localhost:54321/v1/stop-all-services"; - let response = get(url).expect("Request failed"); - let json: Config = response.json().expect("Failed to parse JSON"); - println!("Stop all services: {:?}", json); + let url = "http://localhost:54321/v1/stop-all-services/"; + get(url).expect("Request failed"); // stop docker let _child = Command::new("/usr/local/bin/docker") .args(&["kill", "premd"]) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b3c4af3b..866f1e56 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ "withGlobalTauri": false }, "package": { - "productName": "prem-app", + "productName": "Prem", "version": "0.0.9" }, "tauri": { @@ -55,8 +55,8 @@ "windows": [ { "fullscreen": false, - "minHeight": 800, - "minWidth": 1220, + "minHeight": 900, + "minWidth": 1600, "resizable": true, "title": "Prem App" }