mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Update settings configuration
This commit is contained in:
@@ -33,7 +33,10 @@ namespace Espresso.Shell.Core
|
||||
{
|
||||
try
|
||||
{
|
||||
bool stateSettingSucceeded = (SetThreadExecutionState(state) != 0);
|
||||
var stateResult = SetThreadExecutionState(state);
|
||||
bool stateSettingSucceeded = (stateResult != 0);
|
||||
Console.WriteLine($"State setting result: {stateResult}");
|
||||
|
||||
if (stateSettingSucceeded)
|
||||
{
|
||||
return true;
|
||||
|
||||
@@ -239,7 +239,8 @@ namespace Espresso.Shell
|
||||
}
|
||||
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