Skip to content

Commit

Permalink
More error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nefarius committed Dec 28, 2023
1 parent a88d3fb commit fd09e2b
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions app/MainWindow.HidHide.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,31 @@ private void DetectHidHide()

private async void HidHideCleanDevicesList()
{
HidHideControlService hh = new();
hh.ClearBlockedInstancesList();

try
{
HidHideControlService hh = new();
hh.ClearBlockedInstancesList();
}
catch (Exception ex)
{
Log.Error(ex, $"{nameof(HidHideCleanDevicesList)} failed");
}

await Refresh();
}

private async void HidHideCleanAppList()
{
HidHideControlService hh = new();
hh.ClearApplicationsList();

try
{
HidHideControlService hh = new();
hh.ClearApplicationsList();
}
catch (Exception ex)
{
Log.Error(ex, $"{nameof(HidHideCleanAppList)} failed");
}

await Refresh();
}

Expand Down

0 comments on commit fd09e2b

Please sign in to comment.