File tree Expand file tree Collapse file tree 1 file changed +10
-17
lines changed
Expand file tree Collapse file tree 1 file changed +10
-17
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments