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