|
|
@ -3,6 +3,7 @@ using System.Collections.Generic; |
|
|
|
using System.Collections.Specialized; |
|
|
|
using System.Collections.Specialized; |
|
|
|
using System.IO; |
|
|
|
using System.IO; |
|
|
|
using System.Linq; |
|
|
|
using System.Linq; |
|
|
|
|
|
|
|
using System.Reactive.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Avalonia.Controls; |
|
|
|
using Avalonia.Controls; |
|
|
|
using Avalonia.Controls.Notifications; |
|
|
|
using Avalonia.Controls.Notifications; |
|
|
@ -118,6 +119,12 @@ public partial class CheckpointFolder : ViewModelBase |
|
|
|
checkpointFilesCache |
|
|
|
checkpointFilesCache |
|
|
|
.Connect() |
|
|
|
.Connect() |
|
|
|
.DeferUntilLoaded() |
|
|
|
.DeferUntilLoaded() |
|
|
|
|
|
|
|
.SubscribeMany( |
|
|
|
|
|
|
|
file => |
|
|
|
|
|
|
|
Observable |
|
|
|
|
|
|
|
.FromEventPattern<EventArgs>(file, nameof(ParentListRemoveRequested)) |
|
|
|
|
|
|
|
.Subscribe(_ => checkpointFilesCache.Remove(file)) |
|
|
|
|
|
|
|
) |
|
|
|
.Bind(CheckpointFiles) |
|
|
|
.Bind(CheckpointFiles) |
|
|
|
.Sort( |
|
|
|
.Sort( |
|
|
|
SortExpressionComparer<CheckpointFile> |
|
|
|
SortExpressionComparer<CheckpointFile> |
|
|
|