Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a button to go to the package details from the live output #3020

Merged
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected string[] RawProcessOutput
}
}

private readonly ContentDialog OutputDialog = new();
protected readonly ContentDialog OutputDialog = new();
private readonly ScrollViewer LiveOutputScrollBar = new();
private readonly RichTextBlock LiveOutputTextBlock = new();

Expand Down
6 changes: 6 additions & 0 deletions src/UniGetUI/Controls/OperationWidgets/PackageOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ public PackageOperation(
{
throw new NullReferenceException("ONGOING_PROGRESS_STRING must be set to a non-null value in the Initialize method");
}

OutputDialog.SecondaryButtonText = CoreTools.Translate("Package details");
OutputDialog.SecondaryButtonClick += (_, _) =>
{
DialogHelper.ShowPackageDetails(Package, Role);
};
}

public PackageOperation(
Expand Down
Loading