mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Merge pull request #2023 from Fusioon/terminal_crash
Fix terminal panel crash when closing workspace
This commit is contained in:
commit
b5ceaf9a4e
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ class TerminalPanel : ConsolePanel
|
|||
|
||||
public override void AddedToParent()
|
||||
{
|
||||
if (gApp.mWorkspace.mDir == null)
|
||||
return;
|
||||
|
||||
var consoleProvider = (BeefConConsoleProvider)mConsoleProvider;
|
||||
consoleProvider.mTerminalExe.Set(gApp.mSettings.mWindowsTerminal);
|
||||
consoleProvider.mWorkingDir.Set(gApp.mWorkspace.mDir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue