Skip to content

Commit

Permalink
changed screen dim, name and handle on stop logic (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
filopedraz authored Jun 7, 2023
1 parent 8e4693d commit 19ac9d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down
6 changes: 3 additions & 3 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"withGlobalTauri": false
},
"package": {
"productName": "prem-app",
"productName": "Prem",
"version": "0.0.9"
},
"tauri": {
Expand Down Expand Up @@ -55,8 +55,8 @@
"windows": [
{
"fullscreen": false,
"minHeight": 800,
"minWidth": 1220,
"minHeight": 900,
"minWidth": 1600,
"resizable": true,
"title": "Prem App"
}
Expand Down

0 comments on commit 19ac9d0

Please sign in to comment.