-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Code Quality: Improved WindowsStorables #17191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
671e280
to
a9ef2a8
Compare
src/Files.App.Storage/Storables/WindowsStorage/WindowsStorable.cs
Outdated
Show resolved
Hide resolved
|
6db3e1d
to
b91982c
Compare
42c8207
to
4c7493f
Compare
ecce5eb
to
ddce4da
Compare
|
||
// Invalid FOLDERID; this should never happen. | ||
hr.ThrowOnFailure(); | ||
} | ||
|
||
ThisPtr = pItem; | ||
ThisPtr = pShellItem; | ||
} | ||
|
||
public IAsyncEnumerable<IStorableChild> GetItemsAsync(StorableType type = StorableType.All, CancellationToken cancellationToken = default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actual method used in the app is this, this is used in Quick Access widget. And in fact, other changes do not matter as don't used mostly.
ddce4da
to
60a0e3c
Compare
@@ -13,6 +13,7 @@ namespace Files.App.Helpers | |||
public static partial class Win32Helper | |||
{ | |||
private static bool? isRunningOnArm = null; | |||
[Obsolete] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a replacement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes WindowsStorablesHelpers.IsOnArmProcessor @ WindowsStorablesHelpers.Process.cs which is newly created in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move the obsolete version?
Resolved / Related Issues
Steps used to test these changes