fix(ui): swallow DB errors in TaskListViewModel.OnTaskUpdated
This commit is contained in:
@@ -328,7 +328,14 @@ public partial class TaskListViewModel : ViewModelBase
|
|||||||
private async void OnTaskUpdated(string taskId)
|
private async void OnTaskUpdated(string taskId)
|
||||||
{
|
{
|
||||||
if (CurrentListId is null) return;
|
if (CurrentListId is null) return;
|
||||||
await RefreshSingleAsync(taskId);
|
try
|
||||||
|
{
|
||||||
|
await RefreshSingleAsync(taskId);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
System.Diagnostics.Debug.WriteLine($"[TaskListViewModel] OnTaskUpdated failed for {taskId}: {ex}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static async Task ShowDialogAsync(Window dialog)
|
private static async Task ShowDialogAsync(Window dialog)
|
||||||
|
|||||||
Reference in New Issue
Block a user