Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3660,6 +3660,7 @@ fn handle_cli_args(app: &AppHandle, args: &[String], cwd: &str) -> bool {
eprintln!("Failed to initialize notes folder {:?}: {}", canonical, e);
}
}
#[cfg(not(target_os = "linux"))]
if let Some(main_window) = app.get_webview_window("main") {
let _ = main_window.show();
let _ = main_window.set_focus();
Expand All @@ -3669,6 +3670,7 @@ fn handle_cli_args(app: &AppHandle, args: &[String], cwd: &str) -> bool {

// If no files were opened, show and focus the main window
if !opened_file {
#[cfg(not(target_os = "linux"))]
if let Some(main_window) = app.get_webview_window("main") {
let _ = main_window.show();
let _ = main_window.set_focus();
Expand Down Expand Up @@ -3786,6 +3788,7 @@ pub fn run() {
// - No standalone preview was opened (normal launch), OR
// - No notes folder is configured yet (new user needs FolderPicker
// for onboarding, even if a preview is also showing).
#[cfg(not(target_os = "linux"))]
let _ = main_window.show();
}
}
Expand Down
3 changes: 0 additions & 3 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
"minHeight": 400,
"resizable": true,
"decorations": true,
"titleBarStyle": "Overlay",
"hiddenTitle": true,
"trafficLightPosition": { "x": 16, "y": 24 },
"visible": false
}
],
Expand Down
16 changes: 16 additions & 0 deletions src-tauri/tauri.linux.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"app": {
"windows": [
{
"title": "Scratch",
"width": 1080,
"height": 720,
"minWidth": 600,
"minHeight": 400,
"resizable": true,
"decorations": true,
"visible": true
}
]
}
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
11 changes: 11 additions & 0 deletions src-tauri/tauri.macos.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"app": {
"windows": [
{
"titleBarStyle": "Overlay",
"hiddenTitle": true,
"trafficLightPosition": { "x": 16, "y": 24 }
}
]
}
}