mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
code_style: simplify static commands used by styles and main menu; run dotnet format
This commit is contained in:
parent
e27d2d6a3f
commit
998230edff
10 changed files with 35 additions and 52 deletions
|
@ -318,6 +318,17 @@ namespace SourceGit
|
|||
}
|
||||
}
|
||||
|
||||
private static void CopyTextBlock(TextBlock textBlock)
|
||||
{
|
||||
if (textBlock == null)
|
||||
return;
|
||||
|
||||
if (textBlock.Inlines is { Count: > 0 } inlines)
|
||||
CopyText(inlines.Text);
|
||||
else if (!string.IsNullOrEmpty(textBlock.Text))
|
||||
CopyText(textBlock.Text);
|
||||
}
|
||||
|
||||
private static void LogException(Exception ex)
|
||||
{
|
||||
if (ex == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue