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, new QtPassSettings class, all settings should be read and written here #224
Conversation
added cache to qtpasssettings
access from mainwindow and qtpasssettings
…, start ConfigDialog with first tab.
access from mainwindow and qtpasssettings
Thanks for this big change of the configuration model. I'll boot up a Windows VM and fix the windows errors. |
yeah that was a big change. took me some time ^^ |
@annejan. how was your testing? |
So far so good, both "scenario driven" testing and static analysis haven't found any regression. I was also triggered to do some other minor fixes in other places that I had postponed out of lack of inspiration. Great work @YoshiMan thanks for the effort! The clipboard settings seem to work fine for existing users too . . |
Your welcome. QtPass is a realy nice tool. |
Scenario driven in this case is just a lot of different configs I can easily switch out and a big set of different password files (some broken on purpose) . . I would love to add unit testing and have looked into it a bit a couple of months ago but could not find a good starting point. Qt has a framework for unit tests http://doc.qt.io/qt-5/qtest-overview.html although I have to admit I have no experience with it yet. |
Alright, so you are doing some "manually unit-testing" :D |
I refactored the mainwindow.
Now we have a QtPassSeetings class, where you can read the settings in a static way.
e.g. QtPassSettings::getVersion(), you will get the version as int or "0" as default fallback
or QtPassSettings::getVersion(4), you will get version as int or "4" as fallback
hope you like it.
can you please check for memory leaks or other mistakes i made.