Skip to content

Commit 01c42e3

Browse files
committed
refactor: push hotkey behavior
- Rename the hotkey handler for push operations to align with its function. - Rename the hotkey-triggered push method and change its behavior to push without forcing.
1 parent ebdad30 commit 01c42e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Views/RepositoryToolbar.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
<Path Width="14" Height="14" Data="{StaticResource Icons.Push}"/>
6363
</Button>
64-
<Button Width="0" Height="0" Click="PushDirectlyByHotKey" IsVisible="False" HotKey="{OnPlatform Ctrl+Shift+Up, macOS=⌘+Shift+Up}"/>
64+
<Button Width="0" Height="0" Click="PushByHotKey" IsVisible="False" HotKey="{OnPlatform Ctrl+Shift+Up, macOS=⌘+Shift+Up}"/>
6565

6666
<Button Classes="icon_button" Width="32" Margin="16,0,0,0" Tapped="StashAll" IsVisible="{Binding !IsBare}">
6767
<ToolTip.Tip>

src/Views/RepositoryToolbar.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ private async void Push(object sender, TappedEventArgs e)
197197
}
198198
}
199199

200-
private async void PushDirectlyByHotKey(object sender, RoutedEventArgs e)
200+
private async void PushByHotKey(object sender, RoutedEventArgs e)
201201
{
202202
if (DataContext is ViewModels.Repository repo)
203203
{
204-
await repo.PushAsync(true);
204+
await repo.PushAsync(false);
205205
e.Handled = true;
206206
}
207207
}

0 commit comments

Comments
 (0)