Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlungu committed Sep 19, 2020
1 parent 20834df commit 630b2e7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions ScreenSleep/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ namespace ScreenSleep
/// </summary>
public partial class App : Application
{

}
}
5 changes: 3 additions & 2 deletions ScreenSleep/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
xmlns:tb="http://www.hardcodet.net/taskbar"
mc:Ignorable="d"
WindowStyle="None"
WindowState="Minimized"
ShowInTaskbar="False"
ShowActivated="False"
Icon="Resources/icon.ico"
Title="MainWindow" Height="0" Width="0"
Visibility="Hidden"
Title="MainWindow" Height="1" Width="1"
Loaded="MainWindow_OnLoaded">

<Window.Resources>
Expand Down
2 changes: 2 additions & 0 deletions ScreenSleep/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ private void Settings_OnClick(object sender, RoutedEventArgs e)

private void TurnOff_OnClick(object sender, RoutedEventArgs e)
{
if (MyNotifyIcon.ContextMenu != null) MyNotifyIcon.ContextMenu.IsOpen = false;

Screen.SetScreenState(ScreenState.Off);
}

Expand Down
4 changes: 2 additions & 2 deletions ScreenSleep/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.2")]
[assembly: AssemblyFileVersion("1.0.0.2")]
[assembly: AssemblyVersion("1.0.0.3")]
[assembly: AssemblyFileVersion("1.0.0.3")]

0 comments on commit 630b2e7

Please sign in to comment.