From ba19deb6cb8c83aaff642fb0914371ad9ae89966 Mon Sep 17 00:00:00 2001 From: Timothy Davis Date: Tue, 23 Apr 2019 22:24:21 -0400 Subject: [PATCH] Fixed a bug with a button. Ready to merge Clear Time would stay activated after pressing Stop, allowing the user to clear time over and over again regardless of whether or not the time was 0:00:00.000. --- Project308/StopWatchViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Project308/StopWatchViewController.swift b/Project308/StopWatchViewController.swift index c6f9b47..fcfbd6e 100644 --- a/Project308/StopWatchViewController.swift +++ b/Project308/StopWatchViewController.swift @@ -69,6 +69,7 @@ class StopWatchViewController: UIViewController { * allow stopping the timer and adding a lap time. However, we need to * disable the button that starts the timer */ + clearTimesButton.isEnabled = false startButton.isEnabled = false lapButton.isEnabled = true stopButton.isEnabled = true @@ -140,6 +141,7 @@ class StopWatchViewController: UIViewController { * At this point, we'll need to enable the start button, then * disable the stop and lap buttons. */ + clearTimesButton.isEnabled = false startButton.isEnabled = true lapButton.isEnabled = false stopButton.isEnabled = false