mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 23:03:51 +02:00
Handle failing to read images for OVRTK when they're in use, retry crop print when file in use
This commit is contained in:
@@ -94,15 +94,19 @@ namespace VRCX
|
||||
{
|
||||
List<OvrtMessage> messages = [];
|
||||
|
||||
byte[] imageBytes;
|
||||
if(!string.IsNullOrWhiteSpace(image) && File.Exists(image))
|
||||
byte[] imageBytes = null;
|
||||
try
|
||||
{
|
||||
imageBytes = File.ReadAllBytes(image);
|
||||
if (!string.IsNullOrWhiteSpace(image) && File.Exists(image))
|
||||
{
|
||||
imageBytes = File.ReadAllBytes(image);
|
||||
}
|
||||
}
|
||||
else
|
||||
catch (Exception ex)
|
||||
{
|
||||
imageBytes = _vrcxIcon;
|
||||
logger.Error(ex, "Failed to read OVRT notification image");
|
||||
}
|
||||
imageBytes ??= _vrcxIcon;
|
||||
|
||||
if (wristNotification)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user