File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 6
6
using Files . Core . Storage . Enums ;
7
7
using Files . Core . Storage . LocatableStorage ;
8
8
using Files . Core . Storage . NestedStorage ;
9
- using Microsoft . UI . Dispatching ;
10
9
using Microsoft . UI . Xaml ;
11
10
using Microsoft . UI . Xaml . Controls ;
12
11
using Microsoft . UI . Xaml . Media . Imaging ;
@@ -293,13 +292,17 @@ public async Task LoadThumbnailAsync(bool isSidebar = false)
293
292
else
294
293
{
295
294
if ( ! string . IsNullOrEmpty ( DeviceID ) && ! string . Equals ( DeviceID , "network-folder" ) )
296
- IconData ??= await FileThumbnailHelper . LoadIconWithoutOverlayAsync ( DeviceID , 24 ) ;
295
+ IconData ??= await FileThumbnailHelper . LoadIconWithoutOverlayAsync ( DeviceID , 16 ) ;
297
296
298
297
if ( Root is not null )
299
298
{
300
299
using var thumbnail = await DriveHelpers . GetThumbnailAsync ( Root ) ;
301
300
IconData ??= await thumbnail . ToByteArrayAsync ( ) ;
302
301
}
302
+
303
+ if ( string . Equals ( DeviceID , "network-folder" ) )
304
+ IconData ??= UIHelpers . GetSidebarIconResourceInfo ( Constants . ImageRes . NetworkDrives ) . IconData ;
305
+
303
306
IconData ??= UIHelpers . GetSidebarIconResourceInfo ( Constants . ImageRes . Folder ) . IconData ;
304
307
}
305
308
Icon ??= await IconData . ToBitmapAsync ( ) ;
You can’t perform that action at this time.
0 commit comments