diff options
Diffstat (limited to 'source/WindowsFormsApplication1/API.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/API.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/WindowsFormsApplication1/API.cs b/source/WindowsFormsApplication1/API.cs index 5ab9631..3ccab3c 100644 --- a/source/WindowsFormsApplication1/API.cs +++ b/source/WindowsFormsApplication1/API.cs @@ -1063,7 +1063,7 @@ namespace ShiftOS { if (e.KeyCode == Keys.T && e.Control && formToCreate.Name != "Terminal") { - CreateForm(new Terminal(), CurrentSave.TerminalName, Properties.Resources.iconTerminal); + CurrentSession.InvokeCTRLT(); } if (formToCreate.Name != "Terminal" || Upgrades["windowedterminal"] == true) { @@ -1111,6 +1111,7 @@ namespace ShiftOS } })); WindowComposition.SafeToAddControls = true; + API.CurrentSession.Invoke(new Action(() => { CurrentSession.InvokeWindowOp("open", formToCreate); })); }; bw.RunWorkerAsync(); } |
