diff options
| author | Michael <[email protected]> | 2017-03-10 12:29:28 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-10 12:29:28 -0500 |
| commit | a9754b7df28795b6bb2c5cfe04c1b38b19fb0d05 (patch) | |
| tree | 6ad4355d5c413df83b4e55710bc9850448279697 /ShiftOS_TheReturn/Scripting.cs | |
| parent | a9b08eb21676a6c59b0c8bb6046b40bd42e078d5 (diff) | |
| download | shiftos_thereturn-a9754b7df28795b6bb2c5cfe04c1b38b19fb0d05.tar.gz shiftos_thereturn-a9754b7df28795b6bb2c5cfe04c1b38b19fb0d05.tar.bz2 shiftos_thereturn-a9754b7df28795b6bb2c5cfe04c1b38b19fb0d05.zip | |
Lock certain apps away when system offline.
Diffstat (limited to 'ShiftOS_TheReturn/Scripting.cs')
| -rw-r--r-- | ShiftOS_TheReturn/Scripting.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/Scripting.cs b/ShiftOS_TheReturn/Scripting.cs index bb65dc7..6768efb 100644 --- a/ShiftOS_TheReturn/Scripting.cs +++ b/ShiftOS_TheReturn/Scripting.cs @@ -67,11 +67,14 @@ namespace ShiftOS.Engine.Scripting { ServerManager.MessageReceived += (msg) => { - if(msg.Name == "run") + if (msg.Name == "run") { var cntnts = JsonConvert.DeserializeObject<dynamic>(msg.Contents); var interp = new LuaInterpreter(); - interp.Execute(cntnts.script.ToString()); + Desktop.InvokeOnWorkerThread(() => + { + interp.Execute(cntnts.script.ToString()); + }); } }; } |
