Skip to content
This repository was archived by the owner on Jan 28, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion UserInterface/Dialogs/ExecutionDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ private void Process_OutputDataReceived(object sender, DataReceivedEventArgs e)
// TODO: Add regex to find "packages x/x" and "...done" to compute the progress
}

private void AppendText(string text) => Output.Text += text + Environment.NewLine;
private void AppendText(string text) {
Output.Text += text + Environment.NewLine;
Output.ScrollToEnd();
}

private void WaitforExit()
{
Expand Down
13 changes: 11 additions & 2 deletions UserInterface/Port.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,17 @@ public static List<Dictionary<string, string>> ParseParagraph(string filepath)
else
{
var lsplit = line.Split(new string[] { ": " }, 2, StringSplitOptions.RemoveEmptyEntries);
paragraph.Add(lsplit[0], lsplit.Length < 2 ? string.Empty : lsplit[1]);
lastkey = lsplit[0];
var key = lsplit[0];
var label = lsplit.Length < 2 ? string.Empty : lsplit[1];
string otherLabel="";
if (paragraph.TryGetValue(key, out otherLabel))
{
label = otherLabel + "\n" + label;
paragraph[key] = label;
}
else
paragraph.Add(key,label);
lastkey = key;
}
}
if(paragraph.Count >0) result.Add(paragraph);
Expand Down