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)
|
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()
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user