diff options
| author | MichaelTheShifter <[email protected]> | 2016-06-24 16:44:42 -0400 |
|---|---|---|
| committer | MichaelTheShifter <[email protected]> | 2016-06-24 16:44:51 -0400 |
| commit | ecee91bc559e1c0d716a3032e371218812df61e7 (patch) | |
| tree | 49acdb538b13bc3da89185413bc4096d4e6d81f7 /source/WindowsFormsApplication1/ShiftOSDesktop.cs | |
| parent | 8ea0903788b02b352cc25c9b6f46d439bdb1356a (diff) | |
| download | shiftos-c-_theultimatehacker-ecee91bc559e1c0d716a3032e371218812df61e7.tar.gz shiftos-c-_theultimatehacker-ecee91bc559e1c0d716a3032e371218812df61e7.tar.bz2 shiftos-c-_theultimatehacker-ecee91bc559e1c0d716a3032e371218812df61e7.zip | |
Loads of changes...
Custom shifter options using Lua, and other stuff.
Diffstat (limited to 'source/WindowsFormsApplication1/ShiftOSDesktop.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/ShiftOSDesktop.cs | 10 |
1 files changed, 5 insertions, 5 deletions
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 { } |
