Skip to content

Commit

Permalink
fix: console output is empty in action list
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraZiling committed Feb 5, 2024
1 parent a82ad69 commit 9aa0cfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PipManager/Services/Action/ActionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public void Runner()
var errorDetection = false;
var consoleError = "\n";
var currentAction = ActionList[0];
currentAction.ConsoleOutput = Lang.Action_ConsoleOutput_Empty;
switch (currentAction.OperationType)
{
case ActionType.Uninstall:
Expand Down Expand Up @@ -154,7 +155,7 @@ public void Runner()
currentAction.ConsoleError = consoleError;
ExceptionList.Add(currentAction);
}

Thread.Sleep(100);
Application.Current.Dispatcher.Invoke(delegate
{
ActionList.RemoveAt(0);
Expand Down

0 comments on commit 9aa0cfd

Please sign in to comment.