Skip to content

Commit 1d28809

Browse files
committed
refactor: Update tooltip title from Tempo to Presto in tray icon
1 parent 101a54d commit 1d28809

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

src-tauri/src/lib.rs

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -495,25 +495,18 @@ async fn update_tray_icon(
495495
_ => "⏱️".to_string(),
496496
});
497497

498-
let status = if is_running { "Running" } else { "Paused" };
499-
500-
let title = format!("{} {}", icon, timer_text);
501-
tray.set_title(Some(title))
502-
.map_err(|e| format!("Failed to set title: {}", e))?;
503-
504-
let tooltip = if session_mode == "focus" {
505-
format!(
506-
"Presto - Session {}/{} ({})",
507-
current_session, total_sessions, status
508-
)
509-
} else {
510-
format!(
511-
"Presto - {} ({})",
512-
if session_mode == "longBreak" {
513-
"Long Break"
498+
let status = if is_running { "Running" } else { "Paused" }; let title = format!("{} {}", icon, timer_text);
499+
tray.set_title(Some(title))
500+
.map_err(|e| format!("Failed to set title: {}", e))?;
501+
502+
let tooltip = if session_mode == "focus" {
503+
format!(
504+
"Presto - Session {}/{} ({})",
505+
current_session, total_sessions, status
506+
)
514507
} else {
515508
format!(
516-
"Tempo - {} ({})",
509+
"Presto - {} ({})",
517510
if session_mode == "longBreak" {
518511
"Long Break"
519512
} else {

0 commit comments

Comments
 (0)