1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 22:34:09 +02:00

Merge pull request #2023 from Fusioon/terminal_crash

Fix terminal panel crash when closing workspace
This commit is contained in:
Brian Fiete 2024-09-06 09:09:28 -04:00 committed by GitHub
commit b5ceaf9a4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,6 +32,9 @@ class TerminalPanel : ConsolePanel
public override void AddedToParent() public override void AddedToParent()
{ {
if (gApp.mWorkspace.mDir == null)
return;
var consoleProvider = (BeefConConsoleProvider)mConsoleProvider; var consoleProvider = (BeefConConsoleProvider)mConsoleProvider;
consoleProvider.mTerminalExe.Set(gApp.mSettings.mWindowsTerminal); consoleProvider.mTerminalExe.Set(gApp.mSettings.mWindowsTerminal);
consoleProvider.mWorkingDir.Set(gApp.mWorkspace.mDir); consoleProvider.mWorkingDir.Set(gApp.mWorkspace.mDir);