Skip to content

Commit

Permalink
Copy log messages as a markdown code block to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Nullkooland committed May 9, 2021
1 parent 3c1816b commit 69ad937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GBCLV3/ViewModels/Windows/ErrorReportViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ public void Setup(ErrorReportType type)

Type = type;
MessageFontSize = (logs.Length < 512) ? 16 : 12;
ErrorMessage = $"{logs}\n[Launcher Version: {AssemblyUtil.Version}]";
ErrorMessage = logs;
}

public void Close() => this.RequestClose();

public void Report() => SystemUtil.OpenLink(ISSUES_URL);

public void CopyMessage() => Clipboard.SetText(ErrorMessage, TextDataFormat.UnicodeText);
public void CopyMessage() => Clipboard.SetText($"```ini\n{ErrorMessage}```", TextDataFormat.UnicodeText);

public void OnWindowLoaded(Window window, RoutedEventArgs _)
{
Expand Down

0 comments on commit 69ad937

Please sign in to comment.