mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -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;
|
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 errs = new List<string>();
|
||||||
var proc = new Process() { StartInfo = start };
|
var proc = new Process() { StartInfo = start };
|
||||||
var isCancelled = false;
|
var isCancelled = false;
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:controls="clr-namespace:SourceGit.Views.Controls"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Width="Auto" Height="Auto">
|
Width="Auto" Height="Auto">
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
||||||
|
@ -25,7 +26,16 @@
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Row="0" Text="{StaticResource Text.Launcher.Error}" FontWeight="Bold"/>
|
<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
|
<Button
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Height="25"
|
Height="25"
|
||||||
|
|
Loading…
Reference in a new issue