Skip to content
Open
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
14 changes: 4 additions & 10 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,15 +967,9 @@ pub fn run() {
}
});

let show_item =
MenuItem::with_id(app, "show", "Show Presto", true, None::<&str>)?;
let start_session_item = MenuItem::with_id(
app,
"start_session",
"Start Session",
false,
None::<&str>,
)?;
let show_item = MenuItem::with_id(app, "show", "Show Presto", true, None::<&str>)?;
let start_session_item =
MenuItem::with_id(app, "start_session", "Start Session", false, None::<&str>)?;
let pause_item = MenuItem::with_id(app, "pause", "Pause", false, None::<&str>)?;
let skip_item =
MenuItem::with_id(app, "skip", "Skip Session", false, None::<&str>)?;
Expand Down Expand Up @@ -1141,13 +1135,13 @@ pub fn run() {
let _ = app_handle.track_event("app_exited", None);
app_handle.flush_events_blocking();
}
#[cfg(target_os = "macos")]
tauri::RunEvent::Reopen { .. } => {
// When the user clicks on the dock icon, show the window
if let Some(window) = app_handle.get_webview_window("main") {
let _ = window.show();
let _ = window.set_focus();
// If the app was previously hidden from dock, restore it
#[cfg(target_os = "macos")]
{
let app_handle_clone = app_handle.clone();
tauri::async_runtime::spawn(async move {
Expand Down