Skip to content

Commit fa466a1

Browse files
committed
Display icon for mapped network drives
1 parent 43dc003 commit fa466a1

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

Files/Filesystem/DriveItem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ public DriveItem(StorageFolder root, Visibility progressBarVisibility, DriveType
7676
glyph = "\uE88E";
7777
break;
7878
case DriveType.Network:
79-
break;
79+
glyph = "\uE8CE";
80+
break;
8081
case DriveType.Ram:
8182
break;
8283
case DriveType.CDRom:

Files/Filesystem/Drives.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ private async Task GetDrives(IList<DriveItem> list)
222222
break;
223223
case System.IO.DriveType.Removable:
224224
type = DriveType.Removable;
225-
226225
break;
227226
case System.IO.DriveType.Unknown:
228227
type = DriveType.Unkown;

Files/IShellPage.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
using Files.Interacts;
33
using Files.UserControls;
44
using System;
5-
using System.Collections.Generic;
6-
using System.Collections.ObjectModel;
7-
using System.Linq;
8-
using System.Text;
9-
using System.Threading.Tasks;
105
using Windows.UI.Xaml.Controls;
116

127
namespace Files

Files/UserControls/ModernSidebar.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
Glyph="&#xE753;"
9191
Visibility="{Binding cloudGlyphVisibility}" />
9292
</Grid>
93-
<TextBlock FontSize="14" Text="{Binding driveText}" />
93+
<TextBlock TextTrimming="CharacterEllipsis" FontSize="14" Text="{Binding driveText}" />
9494
</StackPanel>
9595
</muxc:NavigationViewItem.Content>
9696
</muxc:NavigationViewItem>

0 commit comments

Comments
 (0)