-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Refactoring #360
Refactoring #360
Conversation
Like this it easier to re-find the content we are interested in.
This can be used to parse the content of the password file in a common place. In a later commit we should replace the parsing in mainwindow and passworddialog.
This also changes the behavior of the main window: If content should be hidden nothing is shown. Else the password is always shown as a field (either with hidden with dots or openly visibly.) the rest is shown as plain text or as field depending on the template settings. This is results in a nicer ui and needs one translation (Password hidden) less.
d653294
to
81f93a2
Compare
Codecov Report
@@ Coverage Diff @@
## master #360 +/- ##
=========================================
+ Coverage 2.92% 6.38% +3.45%
=========================================
Files 36 39 +3
Lines 2698 2695 -3
Branches 361 351 -10
=========================================
+ Hits 79 172 +93
+ Misses 2618 2517 -101
- Partials 1 6 +5
Continue to review full report at Codecov.
|
* Split datahelpers.h to userinfo.h and passwordconfiguration.h * Rename passwordConfiguration to PasswordConfiguration * Move some code to separate methods in MainWindow * Handle PasswordConfiguration in QtPassSettings and in ConfigDialog
Hi @annejan any chance for a review? Sorry for stressing ;) |
I'm sorry I didn't have time earlier . . Hope you have not planted a red-herring I might have missed, but it all looks good to me 👯♂️ |
Introduce the FileContent class for parsing the password file and use it where we parsed manually before. Also slightly change the behavior of MainWindow how it shows the content (see commit for more details).