mirror of
https://github.com/usatiuk/PomoTime.git
synced 2025-10-29 00:47:48 +01:00
a better first impression: periods work properly on first launch
This commit is contained in:
@@ -239,9 +239,8 @@ namespace PomoTime
|
|||||||
ClearScheduledNotifications();
|
ClearScheduledNotifications();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ResetButton_Click(object sender, RoutedEventArgs e)
|
private void Reset()
|
||||||
{
|
{
|
||||||
AppBarButton b = sender as AppBarButton;
|
|
||||||
MainViewRunningState.IsRunning = false;
|
MainViewRunningState.IsRunning = false;
|
||||||
|
|
||||||
MainViewRunningState.CurrentPeriod = Period.Work;
|
MainViewRunningState.CurrentPeriod = Period.Work;
|
||||||
@@ -251,6 +250,13 @@ namespace PomoTime
|
|||||||
ClearScheduledNotifications();
|
ClearScheduledNotifications();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ResetButton_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
AppBarButton b = sender as AppBarButton;
|
||||||
|
|
||||||
|
Reset();
|
||||||
|
}
|
||||||
|
|
||||||
private void Plus1Button_Click(object sender, RoutedEventArgs e)
|
private void Plus1Button_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
AppBarButton b = sender as AppBarButton;
|
AppBarButton b = sender as AppBarButton;
|
||||||
@@ -350,6 +356,9 @@ namespace PomoTime
|
|||||||
{
|
{
|
||||||
SuspendTime = new DateTime((long)localSettings.Values["SuspendTime"]);
|
SuspendTime = new DateTime((long)localSettings.Values["SuspendTime"]);
|
||||||
FastForwardTime(SuspendTime);
|
FastForwardTime(SuspendTime);
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
Reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user