From 09171ae718bcade204ac8e7182d626d5b65993e0 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Fri, 18 Sep 2020 21:05:25 +0300 Subject: [PATCH] work around a possible problem with timer not starting --- PomoTime/MainPage.xaml.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PomoTime/MainPage.xaml.cs b/PomoTime/MainPage.xaml.cs index f560d09..7c499af 100644 --- a/PomoTime/MainPage.xaml.cs +++ b/PomoTime/MainPage.xaml.cs @@ -237,6 +237,7 @@ namespace PomoTime { RescheduleNotification(); } + RestartTimer(); } private void PauseButton_Click(object sender, RoutedEventArgs e) @@ -388,6 +389,12 @@ namespace PomoTime } } + private void RestartTimer() + { + StopTimer(); + StartTimer(); + } + private void MainPageLoaded(object sender, RoutedEventArgs e) { StartTimer();