Skip to content

Commit

Permalink
Fix #98 Exception when shutdown pc
Browse files Browse the repository at this point in the history
  • Loading branch information
xatupal committed Jan 18, 2024
1 parent 70a9907 commit e31deeb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions KeeTheme/Decorators/ControlSnapshot.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

Expand Down Expand Up @@ -51,6 +52,10 @@ private static Bitmap TryCopyFromScreen(Control control)
{
return null;
}
catch (Win32Exception)
{
return null;
}
}

private static Bitmap CopyFromScreen(Control control)
Expand Down

0 comments on commit e31deeb

Please sign in to comment.