fixed a bug using Try-Catch Brand Duct Tape

This commit is contained in:
william341 2017-05-06 14:32:24 -07:00
parent a4a39d9895
commit 2424b91d51

View file

@ -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