diff options
| author | william341 <[email protected]> | 2017-05-06 14:32:24 -0700 |
|---|---|---|
| committer | william341 <[email protected]> | 2017-05-06 14:32:24 -0700 |
| commit | 2424b91d51bc55ff7493b1249888c143335905af (patch) | |
| tree | 15049ea16a925e8a0ce68b169d611f2e57be17ef /ShiftOS.WinForms | |
| parent | a4a39d9895f9748f86e3c472880e2d8cdbe92c24 (diff) | |
| download | shiftos_thereturn-2424b91d51bc55ff7493b1249888c143335905af.tar.gz shiftos_thereturn-2424b91d51bc55ff7493b1249888c143335905af.tar.bz2 shiftos_thereturn-2424b91d51bc55ff7493b1249888c143335905af.zip | |
fixed a bug using Try-Catch Brand Duct Tape
Diffstat (limited to 'ShiftOS.WinForms')
| -rw-r--r-- | ShiftOS.WinForms/Applications/ShiftoriumFrontend.cs | 13 |
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 |
