From ecee91bc559e1c0d716a3032e371218812df61e7 Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Fri, 24 Jun 2016 16:44:42 -0400 Subject: Loads of changes... Custom shifter options using Lua, and other stuff. --- source/WindowsFormsApplication1/ShiftOSDesktop.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/WindowsFormsApplication1/ShiftOSDesktop.cs') diff --git a/source/WindowsFormsApplication1/ShiftOSDesktop.cs b/source/WindowsFormsApplication1/ShiftOSDesktop.cs index bc0b9ed..9a6818e 100644 --- a/source/WindowsFormsApplication1/ShiftOSDesktop.cs +++ b/source/WindowsFormsApplication1/ShiftOSDesktop.cs @@ -385,7 +385,7 @@ namespace ShiftOS ctrl.Width = w.Width; Skinning.Utilities.saveskin(); } - catch(Exception ex) + catch { AddNotification("Invalid width", "You have entered an invalid width."); } @@ -397,7 +397,7 @@ namespace ShiftOS l.mod.widget(ctrl); } - catch(Exception ex) + catch { API.CreateInfoboxSession("Widget Error", $"An error has occurred creating this \"{w.Name}\". It'll stay, but it may not function as intended.", infobox.InfoboxMode.Info); } @@ -666,7 +666,7 @@ namespace ShiftOS NewAL = new ApplauncherItem(TEMP_AL.Name, Image.FromFile(Paths.Applications + TEMP_AL.AppDirectory + "\\" + TEMP_AL.Icon), lua, true); imgshiftnetapps.Images.Add(file, NewAL.Icon); } - catch (Exception ex) + catch { NewAL = new ApplauncherItem(TEMP_AL.Name, null, lua, true); } @@ -894,7 +894,7 @@ namespace ShiftOS ctrl.Parent.Controls.Remove(ctrl); newPanel.Controls.Add(ctrl); } - catch(Exception ex) + catch { newPanel.Controls.Add(ctrl); } @@ -996,7 +996,7 @@ namespace ShiftOS API.ToggleMinimized(frm); } } - catch (Exception ex) + catch { } -- cgit v1.2.3