Skip to content

Commit

Permalink
Update v1.1.3
Browse files Browse the repository at this point in the history
- disable Info, Settings, Exit buttons while shutdown timer is running
  • Loading branch information
aSavagePancake committed May 19, 2022
1 parent d068a4d commit 2e42750
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Solaris/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@
</Grid>
</Button>

<Label
x:Name="labelDisableButtons"
Width="94"
Height="28"
Margin="454,6,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Background="#FF212125"
Opacity="0.5"
Visibility="Collapsed" />

<mah:FlyoutsControl>
<mah:Flyout
x:Name="InfoFlyout"
Expand Down
2 changes: 2 additions & 0 deletions Solaris/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ private void TimerStartStop_Click(object sender, RoutedEventArgs e)
Indicator1.Visibility = Visibility.Collapsed;
Indicator2.Visibility = Visibility.Collapsed;
Indicator3.Visibility = Visibility.Collapsed;
labelDisableButtons.Visibility = Visibility.Collapsed;

if (Properties.Settings.Default.SettingNotifications == true)
{
Expand All @@ -525,6 +526,7 @@ private void TimerStartStop_Click(object sender, RoutedEventArgs e)
Indicator1.Visibility = Visibility.Visible;
Indicator2.Visibility = Visibility.Visible;
Indicator3.Visibility = Visibility.Visible;
labelDisableButtons.Visibility = Visibility.Visible;

string totalTime = runningTime.ToString(@"hh\:mm\:ss");
string[] totalTimeSplit = totalTime.Split(':');
Expand Down
2 changes: 1 addition & 1 deletion Solaris/Solaris.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<ApplicationIcon>Images\AppIcon.ico</ApplicationIcon>
<FileVersion></FileVersion>
<AssemblyVersion></AssemblyVersion>
<Version>1.1.2</Version>
<Version>1.1.3</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down

0 comments on commit 2e42750

Please sign in to comment.