Skip to content

Commit 6db4921

Browse files
committed
updates stopwatch behavior
1 parent 9f59e4d commit 6db4921

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tock/TockMenuView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ struct TockMenuView: View {
8181
if model.isPaused {
8282
if model.isCountdownFinished {
8383
model.startStopwatch()
84+
dismiss()
8485
} else {
8586
model.resume()
8687
}
@@ -89,6 +90,7 @@ struct TockMenuView: View {
8990
}
9091
} else {
9192
model.startStopwatch()
93+
dismiss()
9294
}
9395
} label: {
9496
Image((model.isRunning && !model.isPaused) ? "pause" : "play")

0 commit comments

Comments
 (0)