mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
Update settings configuration
This commit is contained in:
@@ -33,7 +33,10 @@ namespace Espresso.Shell.Core
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
bool stateSettingSucceeded = (SetThreadExecutionState(state) != 0);
|
var stateResult = SetThreadExecutionState(state);
|
||||||
|
bool stateSettingSucceeded = (stateResult != 0);
|
||||||
|
Console.WriteLine($"State setting result: {stateResult}");
|
||||||
|
|
||||||
if (stateSettingSucceeded)
|
if (stateSettingSucceeded)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -239,7 +239,8 @@ namespace Espresso.Shell
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
ForceExit($"There was a problem reading the configuration file.\n{ex.Message}", 1);
|
Console.WriteLine($"There was a problem reading the configuration file.\n{ex.Message}");
|
||||||
|
//ForceExit($"There was a problem reading the configuration file.\n{ex.Message}", 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user