File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,13 @@ public static void SetIndefiniteKeepAwake(bool keepDisplayOn = false)
3939 /// <param name="callback"></param>
4040 /// <param name="failureCallback"></param>
4141 /// <param name="keepDisplayOn"></param>
42- public static void SetIndefiniteKeepAwake ( Action < bool > ? callback , Action ? failureCallback , bool keepDisplayOn = false )
42+ public static void SetIndefiniteKeepAwake ( Action < bool > callback , Action ? failureCallback , bool keepDisplayOn = false )
4343 {
4444 _cts . Cancel ( ) ;
4545
46+ callback ??= ( bool success ) => { } ;
47+ failureCallback ??= ( ) => { } ;
48+
4649 try
4750 {
4851 if ( _runnerThread != null && ! _runnerThread . IsCanceled )
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ static Awake()
2424 {
2525 _log = LogManager . GetCurrentClassLogger ( ) ;
2626 _cts = new CancellationTokenSource ( ) ;
27+ _stateQueue = [ ] ;
2728 StartMonitor ( ) ;
2829 }
2930
Original file line number Diff line number Diff line change 2020 <PackageReadmeFile >README.md</PackageReadmeFile >
2121 <Company >FrenchyApps42</Company >
2222 <PackageIcon >logo.png</PackageIcon >
23- <Version >1.0.2 </Version >
24- <AssemblyVersion >1.0.2 </AssemblyVersion >
23+ <Version >1.1.0 </Version >
24+ <AssemblyVersion >1.1.0 </AssemblyVersion >
2525 <PackageReleaseNotes >Implement Awake from Microsoft Powertoys</PackageReleaseNotes >
26- <FileVersion >1.0.2.1 </FileVersion >
26+ <FileVersion >1.1.0 </FileVersion >
2727 </PropertyGroup >
2828
2929 <ItemGroup >
You can’t perform that action at this time.
0 commit comments