diff --git a/src/SourceGit/ViewModels/Repository.cs b/src/SourceGit/ViewModels/Repository.cs index bdc2291f..9a3626a4 100644 --- a/src/SourceGit/ViewModels/Repository.cs +++ b/src/SourceGit/ViewModels/Repository.cs @@ -568,6 +568,9 @@ namespace SourceGit.ViewModels public void RefreshWorkingCopyChanges() { var changes = new Commands.QueryLocalChanges(FullPath, _includeUntracked).Result(); + if (_workingCopy == null) + return; + var hasUnsolvedConflict = _workingCopy.SetData(changes); var inProgress = null as InProgressContext; diff --git a/src/SourceGit/Views/AddRemote.axaml b/src/SourceGit/Views/AddRemote.axaml index aeef9fa0..4123d501 100644 --- a/src/SourceGit/Views/AddRemote.axaml +++ b/src/SourceGit/Views/AddRemote.axaml @@ -4,31 +4,33 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="using:SourceGit.Models" xmlns:vm="using:SourceGit.ViewModels" + xmlns:v="using:SourceGit.Views" xmlns:c="using:SourceGit.Converters" mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="450" x:Class="SourceGit.Views.AddRemote" x:DataType="vm:AddRemote"> + Classes="bold" + Text="{DynamicResource Text.Remote.AddTitle}"/> + HorizontalAlignment="Right" VerticalAlignment="Center" + Margin="0,0,8,0" + Text="{DynamicResource Text.Remote.Name}"/> + Text="{Binding Name, Mode=TwoWay}" + v:AutoFocusBehaviour.IsEnabled="True"/> + HorizontalAlignment="Right" VerticalAlignment="Center" + Margin="0,0,8,0" + Text="{DynamicResource Text.Remote.URL}"/> + Classes="bold" + Text="{DynamicResource Text.Submodule.Add}"/> + HorizontalAlignment="Right" VerticalAlignment="Center" + Margin="0,0,8,0" + Text="{DynamicResource Text.URL}"/> + Text="{Binding Url, Mode=TwoWay}" + v:AutoFocusBehaviour.IsEnabled="True"/> + HorizontalAlignment="Right" VerticalAlignment="Center" + Margin="0,0,8,0" + Text="{DynamicResource Text.Submodule.RelativePath}"/> + Classes="bold" + Text="{DynamicResource Text.Apply.Title}"/> + HorizontalAlignment="Right" VerticalAlignment="Center" + Margin="0,0,8,0" + Text="{DynamicResource Text.Apply.File}"/> + Text="{Binding PatchFile, Mode=TwoWay}" + v:AutoFocusBehaviour.IsEnabled="True">