Skip to content

Commit be62356

Browse files
Merge branch 'files-community:main' into main
2 parents d00211c + 283345a commit be62356

25 files changed

+896
-724
lines changed

.github/workflows/cd-sideload-preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
shell: pwsh
8989
run: |
9090
msbuild "$env:LAUNCHER_PROJECT_PATH" `
91+
-t:Build `
9192
-p:Platform=$env:PLATFORM `
9293
-p:Configuration=$env:CONFIGURATION `
9394
-v:quiet

.github/workflows/cd-sideload-stable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
shell: pwsh
8989
run: |
9090
msbuild "$env:LAUNCHER_PROJECT_PATH" `
91+
-t:Build `
9192
-p:Platform=$env:PLATFORM `
9293
-p:Configuration=$env:CONFIGURATION `
9394
-v:quiet

.github/workflows/cd-store-preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
shell: pwsh
8686
run: |
8787
msbuild "$env:LAUNCHER_PROJECT_PATH" `
88+
-t:Build `
8889
-p:Platform=$env:PLATFORM `
8990
-p:Configuration=$env:CONFIGURATION `
9091
-v:quiet

.github/workflows/cd-store-stable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
shell: pwsh
8686
run: |
8787
msbuild "$env:LAUNCHER_PROJECT_PATH" `
88+
-t:Build `
8889
-p:Platform=$env:PLATFORM `
8990
-p:Configuration=$env:CONFIGURATION `
9091
-v:quiet

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"version": "9.0.200",
44
"rollForward": "latestMajor"
55
}
6-
}
6+
}

src/Files.App (Package)/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<Identity
1717
Name="FilesDev"
1818
Publisher="CN=Files"
19-
Version="3.9.1.0" />
19+
Version="3.9.2.0" />
2020

2121
<Properties>
2222
<DisplayName>Files - Dev</DisplayName>

src/Files.App.CsWin32/Windows.Win32.ComPtr.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Windows.Win32
1212
/// <summary>
1313
/// Contains a COM pointer and a set of methods to work with the pointer safely.
1414
/// </summary>
15-
public unsafe struct ComPtr<T> : IDisposable where T : unmanaged
15+
public unsafe struct ComPtr<T> : IDisposable where T : unmanaged, IComIID
1616
{
1717
private T* _ptr;
1818

@@ -40,11 +40,10 @@ public ComPtr(T* ptr)
4040
}
4141

4242
[MethodImpl(MethodImplOptions.AggressiveInlining)]
43-
public readonly ComPtr<U> As<U>() where U : unmanaged
43+
public readonly ComPtr<U> As<U>() where U : unmanaged, IComIID
4444
{
4545
ComPtr<U> ptr = default;
46-
Guid iid = typeof(U).GUID;
47-
((IUnknown*)_ptr)->QueryInterface(&iid, (void**)ptr.GetAddressOf());
46+
((IUnknown*)_ptr)->QueryInterface((Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in U.Guid)), (void**)ptr.GetAddressOf());
4847
return ptr;
4948
}
5049

src/Files.App/Actions/Content/Background/BaseSetAsAction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ protected async void ShowErrorDialog(string message)
3434
{
3535
var errorDialog = new ContentDialog()
3636
{
37-
Title = "FailedToSetBackground".GetLocalizedResource(),
37+
Title = Strings.FailedToSetBackground.GetLocalizedResource(),
3838
Content = message,
39-
PrimaryButtonText = "OK".GetLocalizedResource(),
39+
PrimaryButtonText = Strings.OK.GetLocalizedResource(),
4040
};
4141

4242
if (ApiInformation.IsApiContractPresent("Windows.Foundation.UniversalApiContract", 8))

src/Files.App/Actions/Content/Background/SetAsAppBackgroundAction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ internal sealed partial class SetAsAppBackgroundAction : BaseSetAsAction
88
private readonly IAppearanceSettingsService AppearanceSettingsService = Ioc.Default.GetRequiredService<IAppearanceSettingsService>();
99

1010
public override string Label
11-
=> "SetAsAppBackground".GetLocalizedResource();
11+
=> Strings.SetAsAppBackground.GetLocalizedResource();
1212

1313
public override string Description
14-
=> "SetAsAppBackgroundDescription".GetLocalizedResource();
14+
=> Strings.SetAsAppBackgroundDescription.GetLocalizedResource();
1515

1616
public override RichGlyph Glyph
1717
=> new("\uE91B");

src/Files.App/Actions/Content/Background/SetAsLockscreenBackgroundAction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ internal sealed partial class SetAsLockscreenBackgroundAction : BaseSetAsAction
1010
private readonly IWindowsWallpaperService WindowsWallpaperService = Ioc.Default.GetRequiredService<IWindowsWallpaperService>();
1111

1212
public override string Label
13-
=> "SetAsLockscreen".GetLocalizedResource();
13+
=> Strings.SetAsLockscreen.GetLocalizedResource();
1414

1515
public override string Description
16-
=> "SetAsLockscreenBackgroundDescription".GetLocalizedResource();
16+
=> Strings.SetAsLockscreenBackgroundDescription.GetLocalizedResource();
1717

1818
public override RichGlyph Glyph
1919
=> new("\uEE3F");

0 commit comments

Comments
 (0)