mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-07 05:52:33 -04:00
hide comboBoxWordList if only one worlist present
This commit is contained in:
parent
1d32695f10
commit
b6a7771a23
2 changed files with 8 additions and 1 deletions
|
@ -68,6 +68,13 @@ PasswordGeneratorWidget::PasswordGeneratorWidget(QWidget* parent)
|
||||||
QDir path(filePath()->dataPath("wordlists/"));
|
QDir path(filePath()->dataPath("wordlists/"));
|
||||||
QStringList files = path.entryList(QDir::Files);
|
QStringList files = path.entryList(QDir::Files);
|
||||||
m_ui->comboBoxWordList->addItems(files);
|
m_ui->comboBoxWordList->addItems(files);
|
||||||
|
if (files.size() > 1) {
|
||||||
|
m_ui->comboBoxWordList->setVisible(true);
|
||||||
|
m_ui->labelWordList->setVisible(true);
|
||||||
|
} else {
|
||||||
|
m_ui->comboBoxWordList->setVisible(false);
|
||||||
|
m_ui->labelWordList->setVisible(false);
|
||||||
|
}
|
||||||
|
|
||||||
loadSettings();
|
loadSettings();
|
||||||
reset();
|
reset();
|
||||||
|
|
|
@ -450,7 +450,7 @@ QProgressBar::chunk {
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="labelWordlist">
|
<widget class="QLabel" name="labelWordList">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue