mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
style<Exceptions>: limit max height of error message
This commit is contained in:
parent
c165cab3c0
commit
208af69ea1
2 changed files with 12 additions and 2 deletions
|
@ -68,7 +68,7 @@ namespace SourceGit.Commands {
|
|||
|
||||
if (!string.IsNullOrEmpty(Cwd)) start.WorkingDirectory = Cwd;
|
||||
|
||||
var progressFilter = new Regex(@"\d+\%");
|
||||
var progressFilter = new Regex(@"\s\d+%\s");
|
||||
var errs = new List<string>();
|
||||
var proc = new Process() { StartInfo = start };
|
||||
var isCancelled = false;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:controls="clr-namespace:SourceGit.Views.Controls"
|
||||
mc:Ignorable="d"
|
||||
Width="Auto" Height="Auto">
|
||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
||||
|
@ -25,7 +26,16 @@
|
|||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Grid.Row="0" Text="{StaticResource Text.Launcher.Error}" FontWeight="Bold"/>
|
||||
<TextBlock Grid.Row="1" Margin="0,8" Text="{Binding}" TextWrapping="Wrap"/>
|
||||
<controls:TextEdit
|
||||
Grid.Row="1"
|
||||
Text="{Binding Path=., Mode=OneWay}"
|
||||
IsReadOnly="true"
|
||||
BorderThickness="0"
|
||||
TextWrapping="Wrap"
|
||||
VerticalScrollBarVisibility="Auto"
|
||||
MaxHeight="80"
|
||||
Margin="0,8"
|
||||
VerticalAlignment="Top"/>
|
||||
<Button
|
||||
Grid.Row="2"
|
||||
Height="25"
|
||||
|
|
Loading…
Reference in a new issue