fix(ui): preserve status message after cleanup; English label

Remove StatusMessage reset from LoadAsync so CleanupFinished result survives the reload; reset moved to Refresh command only. Also rename German context-menu label to "Worktrees…".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-05-19 09:55:32 +02:00
parent 789094fcd9
commit 8f4e37ef56
2 changed files with 6 additions and 3 deletions

View File

@@ -78,7 +78,6 @@ public sealed partial class WorktreesOverviewModalViewModel : ViewModelBase
public async Task LoadAsync(CancellationToken ct = default) public async Task LoadAsync(CancellationToken ct = default)
{ {
IsBusy = true; IsBusy = true;
StatusMessage = null;
try try
{ {
var dtos = await _worker.GetWorktreesOverviewAsync(ListIdFilter); var dtos = await _worker.GetWorktreesOverviewAsync(ListIdFilter);
@@ -111,7 +110,11 @@ public sealed partial class WorktreesOverviewModalViewModel : ViewModelBase
} }
[RelayCommand] [RelayCommand]
private Task Refresh() => LoadAsync(); private Task Refresh()
{
StatusMessage = null;
return LoadAsync();
}
[RelayCommand] [RelayCommand]
private async Task CleanupFinished() private async Task CleanupFinished()

View File

@@ -132,7 +132,7 @@
<MenuItem Header="Settings..." <MenuItem Header="Settings..."
Command="{Binding $parent[UserControl].((vm:ListsIslandViewModel)DataContext).OpenListSettingsCommand}" Command="{Binding $parent[UserControl].((vm:ListsIslandViewModel)DataContext).OpenListSettingsCommand}"
CommandParameter="{Binding}"/> CommandParameter="{Binding}"/>
<MenuItem Header="Worktrees anzeigen…" <MenuItem Header="Worktrees…"
Command="{Binding $parent[UserControl].((vm:ListsIslandViewModel)DataContext).OpenWorktreesOverviewCommand}" Command="{Binding $parent[UserControl].((vm:ListsIslandViewModel)DataContext).OpenWorktreesOverviewCommand}"
CommandParameter="{Binding}"/> CommandParameter="{Binding}"/>
</ContextMenu> </ContextMenu>