Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Fix console output not appending text of the previous output
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Mar 8, 2024
1 parent faf7f90 commit fbd6c9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ActiveDirectoryQuerier/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public Command? SelectedComboBoxCommand
// No need to load parameters if the command is null.
if (value is not null)
{
LoadCommandParametersAsync(value); // TODO: TODO: Maybe change this method to synchronous...
LoadCommandParametersAsync(value); // TODO: Maybe change this method to synchronous...
}
}
}
Expand Down Expand Up @@ -467,15 +467,15 @@ private async Task ExecuteSelectedCommandAsync(Command? inCommand = null)

if (result.HadErrors)
{
PowerShellOutput = string.Join(Environment.NewLine, result.StdErr);
PowerShellOutput += string.Join(Environment.NewLine, result.StdErr);
return;
}

PowerShellOutput = string.Join(Environment.NewLine, result.StdOut);
PowerShellOutput += string.Join(Environment.NewLine, result.StdOut);
}
catch (Exception ex)
{
PowerShellOutput = $"Error executing command: {ex.Message}";
PowerShellOutput += $"Error executing command: {ex.Message}";
}
}

Expand Down

0 comments on commit fbd6c9e

Please sign in to comment.