-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add Context menu to layer tree items #48
Conversation
aa2020c
to
3aa43b7
Compare
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.
Thanks! I just have tiny comments otherwise it looks great
@@ -106,6 +115,68 @@ export function addCommands( | |||
) | |||
}); | |||
|
|||
commands.addCommand(CommandIDs.removeLayer, { | |||
label: trans.__('Remove Layer'), | |||
execute: () => { |
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.
We could add a keyboard shortcut here for delete
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.
Thanks @gjmooney, this is great.
I have some suggestions below.
I don't know if this is related to this PR, but it seems that removing a group does not affect the file on disk. |
It should be fixed on main, it was not related to these changes. |
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.
Looks great! Thanks!
Add context menu to layer tree items