Skip to content

Commit

Permalink
ref - Moved console title set
Browse files Browse the repository at this point in the history
---

Type: ref
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 23, 2024
1 parent 576dca3 commit c8a43f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/Nitrocid/Shell/ShellBase/Shells/ShellManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ public static void StartShell(string ShellType, params object[] ShellArgs)
if (ShellStack.Count >= 1)
{
// The shell stack has a mother shell. Start another shell.
ConsoleMisc.SetTitle(KernelReleaseInfo.ConsoleTitle);
StartShellInternal(ShellType, ShellArgs);
}
else
Expand Down Expand Up @@ -871,8 +872,7 @@ internal static void StartShellInternal(string ShellType, params object[] ShellA
if (!histories.ContainsKey(ShellType))
histories.Add(ShellType, []);

// Reset title in case we're going to another shell
ConsoleMisc.SetTitle(KernelReleaseInfo.ConsoleTitle);
// Initialize shell
ShellExecute.InitializeShell(ShellArgs);
}
catch (Exception ex)
Expand Down

0 comments on commit c8a43f8

Please sign in to comment.