Skip to content

Fix shortcuts to folders opening outside Files #9984

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

Merged
merged 1 commit into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/Files.Shared/ShellFileItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ namespace Files.Shared
{
public class ShellFileItem
{
public bool IsFolder;
public string RecyclePath;
public string FileName;
public string FilePath;
public DateTime RecycleDate;
public DateTime ModifiedDate;
public DateTime CreatedDate;
public string FileSize;
public ulong FileSizeBytes;
public string FileType;
public bool IsFolder { get; set; }
public string RecyclePath { get; set; }
public string FileName { get; set; }
public string FilePath { get; set; }
public DateTime RecycleDate { get; set; }
public DateTime ModifiedDate { get; set; }
public DateTime CreatedDate { get; set; }
public string FileSize { get; set; }
public ulong FileSizeBytes { get; set; }
public string FileType { get; set; }

public ShellFileItem()
{
Expand Down
14 changes: 7 additions & 7 deletions src/Files.Shared/ShellLibraryItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,35 @@ public class ShellLibraryItem
/// C:\Users\[username]\AppData\Roaming\Microsoft\Windows\Libraries\Documents.library-ms<br/>
/// C:\Users\[username]\AppData\Roaming\Microsoft\Windows\Libraries\Custom library.library-ms
/// </summary>
public string FullPath;
public string FullPath { get; set; }

/// <summary>
/// ShellItemDisplayString.DesktopAbsoluteParsing<br/>
/// <br/>
/// ::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\Documents.library-ms<br/>
/// C:\Users\[username]\AppData\Roaming\Microsoft\Windows\Libraries\Custom library.library-ms
/// </summary>
public string AbsolutePath;
public string AbsolutePath { get; set; }

/// <summary>
/// ShellItemDisplayString.ParentRelativeParsing<br/>
/// <br/>
/// {7B0DB17D-9CD2-4A93-9733-46CC89022E7C}<br/>
/// Custom library.library-ms
/// </summary>
public string RelativePath;
public string RelativePath { get; set; }

/// <summary>
/// ShellItemDisplayString.NormalDisplay<br/>
/// <br/>
/// Documents (locale dependent based on desktop.ini file of the Libraries folder)<br/>
/// Custom library (locale independent)
/// </summary>
public string DisplayName;
public string DisplayName { get; set; }

public bool IsPinned;
public string DefaultSaveFolder;
public string[] Folders;
public bool IsPinned { get; set; }
public string DefaultSaveFolder { get; set; }
public string[] Folders { get; set; }

public ShellLibraryItem()
{
Expand Down
8 changes: 4 additions & 4 deletions src/Files.Shared/ShellLinkItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
{
public class ShellLinkItem : ShellFileItem
{
public string TargetPath;
public string Arguments;
public string WorkingDirectory;
public bool RunAsAdmin;
public string TargetPath { get; set; }
public string Arguments { get; set; }
public string WorkingDirectory { get; set; }
public bool RunAsAdmin { get; set; }

public ShellLinkItem()
{
Expand Down