Skip to content
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

Code Quality: Removed Vanara.PInvoke.Mpr & Vanara.PInvoke.DwmApi #15292

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

0x5bfa
Copy link
Member

@0x5bfa 0x5bfa commented May 3, 2024

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Open Files app

@0x5bfa
Copy link
Member Author

0x5bfa commented May 3, 2024

@gave92 I'd like to request to review since I changed codes around the preview handler.

The total amount of size of Vanara is about 4.12 MB, while DirectN has 4.85 MB. Do you think DirectN can be replaced with CsWin32?

@yaira2 yaira2 added the needs-testing Pull request requires testing before being merged label May 5, 2024
@gave92 gave92 self-requested a review May 13, 2024 17:19
src/Files.App/Data/Models/NetworkConnectionDialog.cs Outdated Show resolved Hide resolved
src/Files.App/Data/Models/NetworkConnectionDialog.cs Outdated Show resolved Hide resolved
src/Files.App/Data/Models/NetworkConnectionDialog.cs Outdated Show resolved Hide resolved
src/Files.App/Data/Models/NetworkConnectionDialog.cs Outdated Show resolved Hide resolved
src/Files.App/Services/NetworkDrivesService.cs Outdated Show resolved Hide resolved
src/Files.App/Services/NetworkDrivesService.cs Outdated Show resolved Hide resolved
{
return true;
}
else
{
await DialogDisplayHelper.ShowDialogAsync("NetworkFolderErrorDialogTitle".GetLocalizedResource(), connectionError.ToString().Split(":")[1].Trim());
await DialogDisplayHelper.ShowDialogAsync("NetworkFolderErrorDialogTitle".GetLocalizedResource(), res.ToString());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to remove the ".Split(":")[1].Trim()"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found out in the first place this is not needed.

<data name="NetworkFolderErrorDialogTitle" xml:space="preserve">
<value>Network folder error</value>
</data>

@0x5bfa 0x5bfa requested a review from gave92 May 16, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-code review needs-testing Pull request requires testing before being merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants