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
PICARD-1220: Add keyboard shortcut to delete scripts in options page. #874
PICARD-1220: Add keyboard shortcut to delete scripts in options page. #874
Conversation
This is a destructive command. You'd probably want some sort of confirmation. |
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.
Since github won't let me request changes without a comment.
@sambhav there exist confirmation, it simply call remove method. Which in turn shows a confirmation dialog. |
self.shortcut.setKey(QtGui.QKeySequence.Delete) | ||
self.shortcut.activated.connect(self.processor_delete_item) | ||
|
||
def processor_delete_item(self): |
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.
Please conform to python method naming used in the rest of the project code.
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.
@sambhav script_delete_processor
is ok?
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.
delete_selected_script
should do.
@VishalChoudhary please put more efforts into the quality of code you produce. It gets very tiresome for both you and the reviewers to point such trivial mistakes again and again. Please make sure that you are following the contribution guidelines WRT naming, comments, commit messages and PR descriptions. Since this is a feature addition, I'd expect some sort of ticket to reflect the same in the changelog. |
@sambhav ok I will open a ticket. apologies for the inconvenience. |
Summary
Problem
JIRA PICARD-1220
Solution
In options > Scripting. On pressing delete key, the script will be removed.