Skip to content

Commit

Permalink
Prevent main window from minimizing on close
Browse files Browse the repository at this point in the history
Fix #206
  • Loading branch information
Hacksore committed Sep 7, 2024
1 parent 35e563b commit 16222ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ fn main() {
} = event
{
let win = app.get_webview_window(label.as_str()).unwrap();
win.hide().unwrap();
api.prevent_close();
}
});
Expand Down
5 changes: 3 additions & 2 deletions apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://github.com/tauri-apps/tauri/releases/download/tauri-build-v2.0.0-beta.13/schema.json",
"build": {
"beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build",
Expand All @@ -14,8 +15,7 @@
"icons/stable/[email protected]",
"icons/stable/icon.icns",
"icons/stable/icon.ico"
],
"createUpdaterArtifacts": "v1Compatible"
]
},
"productName": "Overlayed",
"version": "0.5.0",
Expand All @@ -31,6 +31,7 @@
{
"fullscreen": false,
"resizable": true,
"minimizable": false,
"transparent": true,
"decorations": false,
"shadow": false,
Expand Down

0 comments on commit 16222ef

Please sign in to comment.