mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
hide recent database; fix wording
This commit is contained in:
parent
ee981c4c19
commit
5c80c31a70
@ -36,9 +36,6 @@ WelcomeWidget::WelcomeWidget(QWidget* parent)
|
|||||||
|
|
||||||
m_ui->iconLabel->setPixmap(filePath()->applicationIcon().pixmap(64));
|
m_ui->iconLabel->setPixmap(filePath()->applicationIcon().pixmap(64));
|
||||||
|
|
||||||
// waiting for CSV PR
|
|
||||||
m_ui->buttonImportCSV->hide();
|
|
||||||
|
|
||||||
m_ui->recentListWidget->clear();
|
m_ui->recentListWidget->clear();
|
||||||
const QStringList lastDatabases = config()->get("LastDatabases", QVariant()).toStringList();
|
const QStringList lastDatabases = config()->get("LastDatabases", QVariant()).toStringList();
|
||||||
for (const QString& database : lastDatabases) {
|
for (const QString& database : lastDatabases) {
|
||||||
@ -46,6 +43,10 @@ WelcomeWidget::WelcomeWidget(QWidget* parent)
|
|||||||
itm->setText(database);
|
itm->setText(database);
|
||||||
m_ui->recentListWidget->addItem(itm);
|
m_ui->recentListWidget->addItem(itm);
|
||||||
}
|
}
|
||||||
|
bool recent_visibility = (m_ui->recentListWidget->count() > 0);
|
||||||
|
m_ui->startLabel->setVisible(!recent_visibility);
|
||||||
|
m_ui->recentListWidget->setVisible(recent_visibility);
|
||||||
|
m_ui->recentLabel->setVisible(recent_visibility);
|
||||||
|
|
||||||
connect(m_ui->buttonNewDatabase, SIGNAL(clicked()), SIGNAL(newDatabase()));
|
connect(m_ui->buttonNewDatabase, SIGNAL(clicked()), SIGNAL(newDatabase()));
|
||||||
connect(m_ui->buttonOpenDatabase, SIGNAL(clicked()), SIGNAL(openDatabase()));
|
connect(m_ui->buttonOpenDatabase, SIGNAL(clicked()), SIGNAL(openDatabase()));
|
||||||
|
@ -80,6 +80,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="startLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Start storing your passwords securely in a KeePassXC database</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -98,43 +108,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="buttonNewDatabase">
|
<widget class="QPushButton" name="buttonNewDatabase">
|
||||||
<property name="palette">
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="Button">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="Button">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="Button">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Create new database</string>
|
<string>Create new database</string>
|
||||||
</property>
|
</property>
|
||||||
@ -148,25 +121,11 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<widget class="QPushButton" name="buttonImportKeePass1">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QPushButton" name="buttonImportKeePass1">
|
<string>Import from KeePass 1</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>Import from KeePass1</string>
|
</widget>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="buttonImportCSV">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Import from CSV</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="verticalSpacer_2">
|
||||||
|
Loading…
Reference in New Issue
Block a user