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

[UI] Don't set window to modified if group tree view gets collapsed or expanded #446

Closed
casch-at opened this issue Mar 30, 2017 · 11 comments
Assignees
Milestone

Comments

@casch-at
Copy link

casch-at commented Mar 30, 2017

Expected Behavior

When the tree gets collapsed or expanded (groupview (tree view)) the window should not be set to modified, instead silently save the state.

Current Behavior

The window is set to modified, on quit the user will be asked whether the "changes" should be saved or not.

keepassxc-modified

Your Environment

KeePassXC - Version 2.1.3
Revision: b7546b4

Libraries:

  • Qt 5.7.1
  • libgcrypt 1.6.6

Operating system: Fedora 25 (Workstation Edition)
CPU architecture: x86_64
Kernel: linux 4.10.5-200.fc25.x86_64+debug

Enabled extensions:

  • Auto-Type

Thank you guys!

Chris

@casch-at
Copy link
Author

casch-at commented Mar 30, 2017

The Tools menu entry hasn't an accelerator either.

@louib
Copy link
Member

louib commented Mar 30, 2017

This could at least be a setting. I might be surprising the first time you get prompted to save your changes when you don't remember creating / editing any entry.

@cslux can you create new issues for the menu accelerators please?

@casch-at
Copy link
Author

@cslux can you create new issues for the menu accelerators please?

Sure!

@droidmonkey
Copy link
Member

Consider the case when you make changes to the database then expand a group. The auto save option is not desired.

@louib
Copy link
Member

louib commented Apr 4, 2017

The auto save option is not desired.

@droidmonkey I didn't notice that the solution proposed was to silently auto save. I was thinking about an option that does not consider changes in group expansion as changes, so that no saving is required for that.

@casch-at
Copy link
Author

casch-at commented Apr 4, 2017

I personally can leave with the solution from #464. But of course, saving state would be better. Saving the state in the keepassxc.ini file is probably not a solution, isn't it? Also, what happens when the user collapses the tree, saves the state, enables the option "Ignore group expansion" #464, would the tree than always be collapsed when the user opens the database?

@casch-at
Copy link
Author

casch-at commented Apr 4, 2017

Also, what happens when the user collapses the tree, saves the state, enables the option "Ignore group expansion" #464, would the tree than always be collapsed when the user opens the database?

I just applied #464. Yes, the group will always be collapsed. I would always expand the tree if the option from #464 is enabled.

@louib
Copy link
Member

louib commented Apr 5, 2017

I just applied #464. Yes, the group will always be collapsed.

Unless you expand that group and then save the database, even though it's not marked as modified.

I would always expand the tree if the option from #464 is enabled.

I don't think we should do any automatic expand or collapse based on the new option. If a user wants certain groups expanded and other groups collapsed on startup, he can always save the db this way, even though it won't be marked as modified.

@casch-at
Copy link
Author

casch-at commented Apr 5, 2017

@louib OK :-)

@louib
Copy link
Member

louib commented Apr 25, 2017

@cslux the feature has been merged in the develop branch, you can try it out!

@louib louib closed this as completed Apr 25, 2017
@casch-at
Copy link
Author

casch-at commented Apr 25, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants