Skip to content

Commit e500ee6

Browse files
committed
feat: add option to play sound when timer ends
Also fix issue with starting application for the first time when no settings are present
1 parent b080182 commit e500ee6

37 files changed

+546
-64
lines changed

src-tauri/Cargo.lock

Lines changed: 406 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ tauri-plugin-autostart = { git = "https://github.com/tauri-apps/plugins-workspac
2222
ts-rs = "7.0.0"
2323
ticking-timer = { git = "https://github.com/g07cha/ticking-timer", branch = "main" }
2424
anyhow = "1.0.75"
25+
rodio = "0.17.3"
2526

2627
[dev-dependencies]
2728
cargo-bump = "1.1.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
22

3-
export interface SettingsPayload { work_duration_secs: number, relax_duration_secs: number, long_relax_duration_secs: number, toggle_timer_shortcut: string | null, }
3+
export interface SettingsPayload { work_duration_secs: number, relax_duration_secs: number, long_relax_duration_secs: number, toggle_timer_shortcut: string | null, should_play_sound: boolean | null, }

src-tauri/resources/audio/bell.mp3

103 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)