silently handle errors during ui draw of download ui
This commit is contained in:
@@ -80,6 +80,8 @@ public class DownloadUi : Window, IDisposable
|
|||||||
|
|
||||||
var basePosition = ImGui.GetWindowPos() + ImGui.GetWindowContentRegionMin();
|
var basePosition = ImGui.GetWindowPos() + ImGui.GetWindowContentRegionMin();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
if (_apiController.CurrentUploads.Any())
|
if (_apiController.CurrentUploads.Any())
|
||||||
{
|
{
|
||||||
var currentUploads = _apiController.CurrentUploads.ToList();
|
var currentUploads = _apiController.CurrentUploads.ToList();
|
||||||
@@ -100,7 +102,11 @@ public class DownloadUi : Window, IDisposable
|
|||||||
UiShared.Color(255, 255, 255, 255), UiShared.Color(0, 0, 0, 255), 2);
|
UiShared.Color(255, 255, 255, 255), UiShared.Color(0, 0, 0, 255), 2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch { }
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
if (_apiController.CurrentDownloads.Any())
|
if (_apiController.CurrentDownloads.Any())
|
||||||
{
|
{
|
||||||
var currentDownloads = _apiController.CurrentDownloads.Where(d => d.Value != null && d.Value.Any()).ToList().SelectMany(k => k.Value).ToList();
|
var currentDownloads = _apiController.CurrentDownloads.Where(d => d.Value != null && d.Value.Any()).ToList().SelectMany(k => k.Value).ToList();
|
||||||
@@ -120,4 +126,6 @@ public class DownloadUi : Window, IDisposable
|
|||||||
UiShared.Color(255, 255, 255, 255), UiShared.Color(0, 0, 0, 255), 2);
|
UiShared.Color(255, 255, 255, 255), UiShared.Color(0, 0, 0, 255), 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch { }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user