Fix minor UX issues with DB Open Widget

* Only clear password field when switching tabs or minimizing. This prevents the setting "Remember Key Files and Hardware Keys" from being useless with multiple databases.
* Convert key file field to Line Edit, simplifies usage. Fix clear field button as well.
* Removed need for clearForms to check if the database is being opened (was a solution to tab switching while unlocking, no longer a problem).
This commit is contained in:
Jonathan White 2020-06-06 09:54:57 -04:00
parent 6c9125402a
commit 1ad0184473
4 changed files with 51 additions and 68 deletions

View file

@ -237,7 +237,7 @@
<string>Key File:</string>
</property>
<property name="buddy">
<cstring>comboKeyFile</cstring>
<cstring>keyFileLineEdit</cstring>
</property>
</widget>
</item>
@ -406,10 +406,7 @@
<number>0</number>
</property>
<item row="0" column="1">
<widget class="QComboBox" name="comboKeyFile">
<property name="enabled">
<bool>true</bool>
</property>
<widget class="QLineEdit" name="keyFileLineEdit">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
@ -417,10 +414,7 @@
</sizepolicy>
</property>
<property name="accessibleName">
<string>Key file selection</string>
</property>
<property name="editable">
<bool>true</bool>
<string>Key file to unlock the database</string>
</property>
</widget>
</item>
@ -610,7 +604,7 @@
</customwidgets>
<tabstops>
<tabstop>editPassword</tabstop>
<tabstop>comboKeyFile</tabstop>
<tabstop>keyFileLineEdit</tabstop>
<tabstop>buttonBrowseFile</tabstop>
<tabstop>challengeResponseCombo</tabstop>
<tabstop>buttonRedetectYubikey</tabstop>