aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwilliam341 <[email protected]>2017-05-06 14:32:24 -0700
committerwilliam341 <[email protected]>2017-05-06 14:32:24 -0700
commit2424b91d51bc55ff7493b1249888c143335905af (patch)
tree15049ea16a925e8a0ce68b169d611f2e57be17ef
parenta4a39d9895f9748f86e3c472880e2d8cdbe92c24 (diff)
downloadshiftos_thereturn-2424b91d51bc55ff7493b1249888c143335905af.tar.gz
shiftos_thereturn-2424b91d51bc55ff7493b1249888c143335905af.tar.bz2
shiftos_thereturn-2424b91d51bc55ff7493b1249888c143335905af.zip
fixed a bug using Try-Catch Brand Duct Tape
-rw-r--r--ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs b/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs
index 06266c3..52e9a9e 100644
--- a/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs
+++ b/ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs
@@ -134,9 +134,16 @@ namespace ShiftOS.WinForms.Applications
Desktop.InvokeOnWorkerThread(() =>
{
- lblcategorytext.Text = Shiftorium.GetCategories()[CategoryId];
- btncat_back.Visible = (CategoryId > 0);
- btncat_forward.Visible = (CategoryId < backend.GetCategories().Length - 1);
+ try
+ {
+ lblcategorytext.Text = Shiftorium.GetCategories()[CategoryId];
+ btncat_back.Visible = (CategoryId > 0);
+ btncat_forward.Visible = (CategoryId < backend.GetCategories().Length - 1);
+ }
+ catch
+ {
+
+ }
});
}
catch