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

PICARD-1220: Add keyboard shortcut to delete scripts in options page. #874

Closed
wants to merge 1 commit into from
Closed

PICARD-1220: Add keyboard shortcut to delete scripts in options page. #874

wants to merge 1 commit into from

Conversation

vishichoudhary
Copy link
Contributor

@vishichoudhary vishichoudhary commented Mar 10, 2018

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

JIRA PICARD-1220

Solution

In options > Scripting. On pressing delete key, the script will be removed.

@vishichoudhary vishichoudhary changed the title Add keyboard shortcut(delete) to delete scripts in options page. Add keyboard shortcut to delete scripts in options page. Mar 10, 2018
@samj1912
Copy link
Collaborator

This is a destructive command. You'd probably want some sort of confirmation.

Copy link
Collaborator

@samj1912 samj1912 left a 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.

@vishichoudhary
Copy link
Contributor Author

vishichoudhary commented Mar 10, 2018

@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):
Copy link
Collaborator

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.

Copy link
Contributor Author

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?

Copy link
Collaborator

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.

@samj1912
Copy link
Collaborator

@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.

@vishichoudhary
Copy link
Contributor Author

@sambhav ok I will open a ticket. apologies for the inconvenience.

@vishichoudhary vishichoudhary changed the title Add keyboard shortcut to delete scripts in options page. PICARD-1220: Add keyboard shortcut to delete scripts in options page. Mar 10, 2018
@vishichoudhary vishichoudhary deleted the add_keyboard_shortcut_in_scripts branch March 10, 2018 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants