@@ -149,7 +149,7 @@ private async Task UpdateCollectionAsync(NotifyCollectionChangedEventArgs e)
149149 if ( e . NewItems is not null )
150150 {
151151 var item = e . NewItems . Cast < LocationItem > ( ) . Single ( ) ;
152- var cardItem = new WidgetFolderCardItem ( item , SystemIO . Path . GetFileName ( item . Text ) , true ) { Path = item . Path } ;
152+ var cardItem = new WidgetFolderCardItem ( item , SystemIO . Path . GetFileName ( item . Text ) , item . IsPinned ) { Path = item . Path } ;
153153 AddItemToCollection ( cardItem ) ;
154154 }
155155 }
@@ -161,7 +161,7 @@ private async Task UpdateCollectionAsync(NotifyCollectionChangedEventArgs e)
161161 Items . RemoveAt ( e . OldStartingIndex ) ;
162162
163163 var item = e . NewItems . Cast < LocationItem > ( ) . Single ( ) ;
164- var cardItem = new WidgetFolderCardItem ( item , SystemIO . Path . GetFileName ( item . Text ) , true ) { Path = item . Path } ;
164+ var cardItem = new WidgetFolderCardItem ( item , SystemIO . Path . GetFileName ( item . Text ) , item . IsPinned ) { Path = item . Path } ;
165165 AddItemToCollection ( cardItem ) ;
166166 }
167167 }
@@ -181,7 +181,7 @@ private async Task UpdateCollectionAsync(NotifyCollectionChangedEventArgs e)
181181 if ( item is not LocationItem locationItem )
182182 continue ;
183183
184- var cardItem = new WidgetFolderCardItem ( locationItem , SystemIO . Path . GetFileName ( locationItem . Text ) , true ) { Path = locationItem . Path } ;
184+ var cardItem = new WidgetFolderCardItem ( locationItem , SystemIO . Path . GetFileName ( locationItem . Text ) , locationItem . IsPinned ) { Path = locationItem . Path } ;
185185 AddItemToCollection ( cardItem ) ;
186186 }
187187 }
0 commit comments