mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-23 02:12:14 +00:00
fixed a bug using Try-Catch Brand Duct Tape
This commit is contained in:
parent
a4a39d9895
commit
2424b91d51
1 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue