File tree 2 files changed +12
-6
lines changed
Files.App.Storage/Storables/WindowsStorage
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,11 @@ private static string? AppId
29
29
}
30
30
}
31
31
32
- public ConcurrentBag < JumpListItem > JumpListItems { get ; private set ; }
32
+ public ConcurrentBag < JumpListItem > JumpListItems { get ; private set ; } = [ ] ;
33
+
34
+ public ConcurrentBag < JumpListItem > RemovedItems { get ; private set ; } = [ ] ;
35
+
36
+ public ConcurrentBag < JumpListItem > RejectedItems { get ; private set ; } = [ ] ;
33
37
34
38
// A special "Frequent" category managed by Windows
35
39
public bool ShowFrequentCategory { get ; set ; }
@@ -51,7 +55,8 @@ public JumpListManager()
51
55
& IID_ICustomDestinationList ,
52
56
( void * * ) pCustomDestinationList . GetAddressOf ( ) ) ;
53
57
54
- JumpListItems = [ ] ;
58
+ // Should not happen but as a sanity check at an early stage
59
+ hr . ThrowOnFailure ( ) ;
55
60
}
56
61
57
62
public HRESULT Save ( )
@@ -66,11 +71,11 @@ public HRESULT Save()
66
71
67
72
hr = pCustomDestinationList . Get ( ) ->BeginList ( & cMinSlots , & IID_IObjectArray , ( void * * ) pDeletedItemsObjectArray . GetAddressOf ( ) ) ;
68
73
69
- // Validate items
70
- foreach ( var item in JumpListItems )
71
- {
74
+ // TODO: Validate items
72
75
73
- }
76
+ // TODO: Group them as categories
77
+
78
+ // TODO: Append a custom category or to the Tasks
74
79
75
80
if ( ShowFrequentCategory )
76
81
pCustomDestinationList . Get ( ) ->AppendKnownCategory ( KNOWNDESTCATEGORY . KDC_FREQUENT ) ;
Original file line number Diff line number Diff line change 75
75
76
76
// Files.App.Storage
77
77
78
+ global using global ::Files . App . Storage ;
78
79
global using global ::Files . App . Storage . Storables ;
79
80
global using global ::Files . App . Storage . Watchers ;
80
81
You can’t perform that action at this time.
0 commit comments