mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix bug that stuck auto fetch when pull failed & make stage area resizeable (#627)
* fix watcher stuck by pull * make stage area resizeable --------- Co-authored-by: yindf <yindf@mail.jj.cn> (cherry picked from commit a842aca042a73cb5fa3995794aae2a2e3540b37f)
This commit is contained in:
parent
fe03512c5c
commit
2d7ea561e2
2 changed files with 12 additions and 0 deletions
|
@ -149,7 +149,10 @@ namespace SourceGit.ViewModels
|
||||||
SetProgressDescription($"Fetching remote: {_selectedRemote.Name}...");
|
SetProgressDescription($"Fetching remote: {_selectedRemote.Name}...");
|
||||||
rs = new Commands.Fetch(_repo.FullPath, _selectedRemote.Name, NoTags, SetProgressDescription).Exec();
|
rs = new Commands.Fetch(_repo.FullPath, _selectedRemote.Name, NoTags, SetProgressDescription).Exec();
|
||||||
if (!rs)
|
if (!rs)
|
||||||
|
{
|
||||||
|
CallUIThread(() => _repo.SetWatcherEnabled(true));
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
_repo.MarkFetched();
|
_repo.MarkFetched();
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,15 @@
|
||||||
ChangeDoubleTapped="OnUnstagedChangeDoubleTapped"
|
ChangeDoubleTapped="OnUnstagedChangeDoubleTapped"
|
||||||
KeyDown="OnUnstagedKeyDown"/>
|
KeyDown="OnUnstagedKeyDown"/>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Splitter -->
|
||||||
|
<GridSplitter Grid.Row="2"
|
||||||
|
MinWidth="1"
|
||||||
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
||||||
|
Background="Transparent"
|
||||||
|
BorderThickness="0,0,1,0"
|
||||||
|
BorderBrush="{DynamicResource Brush.Border0}"/>
|
||||||
|
|
||||||
<!-- Staged Toolbar -->
|
<!-- Staged Toolbar -->
|
||||||
<Border Grid.Row="2" BorderThickness="0,1" BorderBrush="{DynamicResource Brush.Border0}">
|
<Border Grid.Row="2" BorderThickness="0,1" BorderBrush="{DynamicResource Brush.Border0}">
|
||||||
<Grid ColumnDefinitions="Auto,Auto,Auto,Auto,*,Auto,Auto,Auto">
|
<Grid ColumnDefinitions="Auto,Auto,Auto,Auto,*,Auto,Auto,Auto">
|
||||||
|
|
Loading…
Reference in a new issue