mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-27 06:47:02 -05:00
hide comboBoxWordList if only one worlist present
This commit is contained in:
parent
1d32695f10
commit
b6a7771a23
@ -68,6 +68,13 @@ PasswordGeneratorWidget::PasswordGeneratorWidget(QWidget* parent)
|
||||
QDir path(filePath()->dataPath("wordlists/"));
|
||||
QStringList files = path.entryList(QDir::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();
|
||||
reset();
|
||||
|
@ -450,7 +450,7 @@ QProgressBar::chunk {
|
||||
<item row="1" column="0">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="labelWordlist">
|
||||
<widget class="QLabel" name="labelWordList">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
|
Loading…
x
Reference in New Issue
Block a user