Skip to content

Commit ca619d1

Browse files
authored
Fix: Fixed cloud icon for OneDrive work accounts (#13148)
1 parent f804553 commit ca619d1

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Files.App/Helpers/UI/UIHelpers.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ private static IEnumerable<IconFileInfo> LoadSidebarIconResources()
176176
Constants.ImageRes.Libraries,
177177
Constants.ImageRes.ThisPC,
178178
Constants.ImageRes.CloudDrives,
179-
Constants.ImageRes.Folder
179+
Constants.ImageRes.Folder,
180+
Constants.ImageRes.OneDrive
180181
}, 32);
181182

182183
return imageResList;

src/Files.App/Utils/Cloud/CloudDrivesDetector.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
// Copyright (c) 2023 Files Community
22
// Licensed under the MIT License. See the LICENSE.
33

4-
using Files.Shared.Extensions;
54
using Microsoft.Win32;
6-
using System;
7-
using System.Collections.Generic;
85
using System.IO;
9-
using System.Linq;
106
using System.Runtime.Versioning;
11-
using System.Threading.Tasks;
127

138
namespace Files.App.Utils.Cloud
149
{
@@ -164,6 +159,7 @@ private static Task<IEnumerable<ICloudProvider>> DetectOneDrive()
164159
{
165160
Name = accountName,
166161
SyncFolder = userFolder,
162+
IconData = UIHelpers.GetSidebarIconResourceInfo(Constants.ImageRes.OneDrive).IconData,
167163
});
168164
}
169165
}

0 commit comments

Comments
 (0)