Skip to content

Commit b111922

Browse files
authored
Merge pull request #3020 from mrixner/package-details-from-live-output
Add a button to go to the package details from the live output
2 parents 5ee697f + 0537c8f commit b111922

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/UniGetUI/Controls/OperationWidgets/OperationControl.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected string[] RawProcessOutput
130130
}
131131
}
132132

133-
private readonly ContentDialog OutputDialog = new();
133+
protected readonly ContentDialog OutputDialog = new();
134134
private readonly ScrollViewer LiveOutputScrollBar = new();
135135
private readonly RichTextBlock LiveOutputTextBlock = new();
136136

src/UniGetUI/Controls/OperationWidgets/PackageOperations.cs

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ public PackageOperation(
4646
{
4747
throw new NullReferenceException("ONGOING_PROGRESS_STRING must be set to a non-null value in the Initialize method");
4848
}
49+
50+
OutputDialog.SecondaryButtonText = CoreTools.Translate("Package details");
51+
OutputDialog.SecondaryButtonClick += (_, _) =>
52+
{
53+
DialogHelper.ShowPackageDetails(Package, Role);
54+
};
4955
}
5056

5157
public PackageOperation(

0 commit comments

Comments
 (0)