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

Feature: Implement more RichCommands #11493

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

hecksmosis
Copy link
Contributor

Resolved / Related Issues
Items resolved / related issues by this PR.

Validation
How did you test these changes?

  • Built and ran the app

yaira2
yaira2 previously approved these changes Feb 27, 2023
Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

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

LGTM

@yaira2 yaira2 added the ready to merge Pull requests that are approved and ready to merge label Feb 27, 2023
@yaira2 yaira2 merged commit 8bf58fc into files-community:main Feb 27, 2023
@QuaintMako QuaintMako mentioned this pull request Feb 27, 2023
78 tasks
},
Command = commandsViewModel.CreateShortcutCommand,
ShowItem = itemsSelected && (!selectedItems.FirstOrDefault()?.IsShortcut ?? false),
SingleItemOnly = true,
Copy link
Member

Choose a reason for hiding this comment

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

Just noticed this was removed, create shortcut should only show if a single item is selected.

OpacityIconStyle = "ColorIconPinToFavorites",
},
Command = commandsViewModel.PinItemToStartCommand,
ShowOnShift = true,
Copy link
Member

Choose a reason for hiding this comment

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

Looks like show on shift was also removed, can you add this back?

OpacityIconStyle = "ColorIconUnpinFromFavorites",
},
Command = commandsViewModel.UnpinItemFromStartCommand,
ShowOnShift = true,
Copy link
Member

Choose a reason for hiding this comment

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

This as well

ShowItem = selectedItems.All(x => !x.IsShortcut && (x.PrimaryItemAttribute == StorageItemTypes.Folder || x.IsExecutable) && !x.IsArchive && !x.IsItemPinnedToStart),
ShowInSearchPage = true,
ShowInFtpPage = true,
SingleItemOnly = true,
Copy link
Member

Choose a reason for hiding this comment

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

This too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants