Skip to content

Add 'Remember my choice' checkbox, resolves #51#237

Merged
phoerious merged 2 commits intodevelopfrom
feature/51-remember-cmd-exec-decision
Jan 28, 2017
Merged

Add 'Remember my choice' checkbox, resolves #51#237
phoerious merged 2 commits intodevelopfrom
feature/51-remember-cmd-exec-decision

Conversation

@phoerious
Copy link
Copy Markdown
Member

Allow user to store preference when asked whether to execute command, resolves #51.

Description

This patch adds the missing checkbox to store the user's decision whether to execute a command or not.
The preference is stored in the form of an extended attribute. When the URL of an entry changes, the attribute gets removed, so the user will be asked again next time.

How Has This Been Tested?

I performed many manual runs in different configuration contexts: creating a new entry, editing an entry, storing yes editing the entry, storing no, editing again and so on.

Screenshots (if appropriate):

screenshot_20170128_142342

Types of changes

  • ✅ New feature (non-breaking change which adds functionality)

Checklist:

  • ✅ I have read the CONTRIBUTING document. [REQUIRED]
  • ✅ My code follows the code style of this project. [REQUIRED]
  • ✅ All new and existing tests passed. [REQUIRED]

Additional notes

Considering that we have at least two areas now where we use extended attributes to save internal configurations (KeePassHTTP and this), it might be reasonable to define a protected namespace prefix in the future to prevent collisions with user-defined attributes. Users won't be able to create attributes starting with that prefix.

Allow user to store preference when asked whether to execute command, resolves #51
@phoerious phoerious added this to the v2.2.0 milestone Jan 28, 2017
@phoerious phoerious merged commit 5508449 into develop Jan 28, 2017
@phoerious phoerious deleted the feature/51-remember-cmd-exec-decision branch January 28, 2017 16:09
@phoerious phoerious added pr: new feature Pull request adds a new feature and removed new feature labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: new feature Pull request adds a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ask user before executing "cmd://" URLs

2 participants