diff options
Diffstat (limited to 'source/WindowsFormsApplication1/Engine')
| -rw-r--r-- | source/WindowsFormsApplication1/Engine/Lua_Interp.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/WindowsFormsApplication1/Engine/Lua_Interp.cs b/source/WindowsFormsApplication1/Engine/Lua_Interp.cs index 529518e..bb76c77 100644 --- a/source/WindowsFormsApplication1/Engine/Lua_Interp.cs +++ b/source/WindowsFormsApplication1/Engine/Lua_Interp.cs @@ -186,12 +186,12 @@ namespace ShiftOS WindowBorder b = null; foreach(Control c in win.Controls) { - if ((string)c.Tag == "api_brdr") - b = (WindowBorder)c; + if (c is WindowBorder) + b = c as WindowBorder; } return b; }); - + mod.def_update = new Action(() => API.UpdateWindows()); mod.on_app_launcher_populate += new Action<ShiftOSDesktop, string>((desktop, func) => { desktop.OnAppLauncherPopulate += (items) => |
