Show Git, Cloud, and created date in Details, and hide Free space except on drives.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -74,7 +74,16 @@ public sealed partial class FolderItemViewModel : ObservableObject
|
||||
public bool MayHydrateOnRead => Item.Cloud?.MayHydrateOnRead == true
|
||||
|| AttributeFlags.MayHydrateOnRead(Item.Attributes);
|
||||
public string CloudStatus => Item.Cloud?.StatusText ?? "";
|
||||
public bool HasCloudStatus => !string.IsNullOrEmpty(CloudStatus);
|
||||
public string CloudLabel => Item.Cloud?.Availability switch
|
||||
{
|
||||
CloudAvailability.OnlineOnly => "Online-only",
|
||||
CloudAvailability.LocallyAvailable => "Local",
|
||||
CloudAvailability.Pinned => "Pinned",
|
||||
CloudAvailability.Syncing => "Syncing",
|
||||
CloudAvailability.Error => "Error",
|
||||
_ => ""
|
||||
};
|
||||
public bool HasCloudStatus => !string.IsNullOrEmpty(CloudLabel);
|
||||
|
||||
[ObservableProperty] private string _gitLabel = "";
|
||||
public bool HasGitLabel => !string.IsNullOrEmpty(GitLabel);
|
||||
@@ -82,10 +91,7 @@ public sealed partial class FolderItemViewModel : ObservableObject
|
||||
[ObservableProperty] private object? _thumbnail;
|
||||
public bool HasThumbnail => Thumbnail is not null;
|
||||
|
||||
public void SetGit(GitStatus? status)
|
||||
{
|
||||
GitLabel = status?.Badge ?? "";
|
||||
}
|
||||
public void SetGit(string? label) => GitLabel = label ?? "";
|
||||
|
||||
public void SetThumbnail(object? image) => Thumbnail = image;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user