mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-26 22:36:59 -05:00
KeeShare settings fixes
* Moved KeeShare Quiet Success message setting to the KeeShare portion of the application settings * Removed an assert that caused the application to crash in debugging when a share file could not be found * Corrected database settings security icon
This commit is contained in:
parent
ef3c2daef1
commit
eb9371091a
@ -100,10 +100,6 @@ ApplicationSettingsWidget::ApplicationSettingsWidget(QWidget* parent)
|
|||||||
m_generalUi->checkUpdatesSpacer->changeSize(0, 0, QSizePolicy::Fixed, QSizePolicy::Fixed);
|
m_generalUi->checkUpdatesSpacer->changeSize(0, 0, QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WITH_XC_KEESHARE
|
|
||||||
m_generalUi->quietKeeShareSuccess->setVisible(false);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef WITH_XC_NETWORKING
|
#ifndef WITH_XC_NETWORKING
|
||||||
m_secUi->privacy->setVisible(false);
|
m_secUi->privacy->setVisible(false);
|
||||||
#endif
|
#endif
|
||||||
@ -186,7 +182,6 @@ void ApplicationSettingsWidget::loadSettings()
|
|||||||
m_generalUi->systrayDarkIconCheckBox->setChecked(config()->get("GUI/DarkTrayIcon").toBool());
|
m_generalUi->systrayDarkIconCheckBox->setChecked(config()->get("GUI/DarkTrayIcon").toBool());
|
||||||
m_generalUi->systrayMinimizeToTrayCheckBox->setChecked(config()->get("GUI/MinimizeToTray").toBool());
|
m_generalUi->systrayMinimizeToTrayCheckBox->setChecked(config()->get("GUI/MinimizeToTray").toBool());
|
||||||
m_generalUi->minimizeOnCloseCheckBox->setChecked(config()->get("GUI/MinimizeOnClose").toBool());
|
m_generalUi->minimizeOnCloseCheckBox->setChecked(config()->get("GUI/MinimizeOnClose").toBool());
|
||||||
m_generalUi->quietKeeShareSuccess->setChecked(config()->get("GUI/QuietKeeShareSuccess").toBool());
|
|
||||||
m_generalUi->systrayMinimizeOnStartup->setChecked(config()->get("GUI/MinimizeOnStartup").toBool());
|
m_generalUi->systrayMinimizeOnStartup->setChecked(config()->get("GUI/MinimizeOnStartup").toBool());
|
||||||
m_generalUi->checkForUpdatesOnStartupCheckBox->setChecked(config()->get("GUI/CheckForUpdates").toBool());
|
m_generalUi->checkForUpdatesOnStartupCheckBox->setChecked(config()->get("GUI/CheckForUpdates").toBool());
|
||||||
m_generalUi->checkForUpdatesIncludeBetasCheckBox->setChecked(
|
m_generalUi->checkForUpdatesIncludeBetasCheckBox->setChecked(
|
||||||
@ -272,7 +267,6 @@ void ApplicationSettingsWidget::saveSettings()
|
|||||||
config()->set("GUI/DarkTrayIcon", m_generalUi->systrayDarkIconCheckBox->isChecked());
|
config()->set("GUI/DarkTrayIcon", m_generalUi->systrayDarkIconCheckBox->isChecked());
|
||||||
config()->set("GUI/MinimizeToTray", m_generalUi->systrayMinimizeToTrayCheckBox->isChecked());
|
config()->set("GUI/MinimizeToTray", m_generalUi->systrayMinimizeToTrayCheckBox->isChecked());
|
||||||
config()->set("GUI/MinimizeOnClose", m_generalUi->minimizeOnCloseCheckBox->isChecked());
|
config()->set("GUI/MinimizeOnClose", m_generalUi->minimizeOnCloseCheckBox->isChecked());
|
||||||
config()->set("GUI/QuietKeeShareSuccess", m_generalUi->quietKeeShareSuccess->isChecked());
|
|
||||||
config()->set("GUI/MinimizeOnStartup", m_generalUi->systrayMinimizeOnStartup->isChecked());
|
config()->set("GUI/MinimizeOnStartup", m_generalUi->systrayMinimizeOnStartup->isChecked());
|
||||||
config()->set("GUI/CheckForUpdates", m_generalUi->checkForUpdatesOnStartupCheckBox->isChecked());
|
config()->set("GUI/CheckForUpdates", m_generalUi->checkForUpdatesOnStartupCheckBox->isChecked());
|
||||||
config()->set("GUI/CheckForUpdatesIncludeBetas", m_generalUi->checkForUpdatesIncludeBetasCheckBox->isChecked());
|
config()->set("GUI/CheckForUpdatesIncludeBetas", m_generalUi->checkForUpdatesIncludeBetasCheckBox->isChecked());
|
||||||
|
@ -382,13 +382,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QCheckBox" name="quietKeeShareSuccess">
|
|
||||||
<property name="text">
|
|
||||||
<string>Do not show success notifications for KeeShare, only warnings and errors</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="systrayShowCheckBox">
|
<widget class="QCheckBox" name="systrayShowCheckBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -77,7 +77,7 @@ DatabaseSettingsDialog::DatabaseSettingsDialog(QWidget* parent)
|
|||||||
connect(m_ui->buttonBox, SIGNAL(rejected()), SLOT(reject()));
|
connect(m_ui->buttonBox, SIGNAL(rejected()), SLOT(reject()));
|
||||||
|
|
||||||
m_ui->categoryList->addCategory(tr("General"), FilePath::instance()->icon("categories", "preferences-other"));
|
m_ui->categoryList->addCategory(tr("General"), FilePath::instance()->icon("categories", "preferences-other"));
|
||||||
m_ui->categoryList->addCategory(tr("Security"), FilePath::instance()->icon("actions", "security-high"));
|
m_ui->categoryList->addCategory(tr("Security"), FilePath::instance()->icon("status", "security-high"));
|
||||||
m_ui->stackedWidget->addWidget(m_generalWidget);
|
m_ui->stackedWidget->addWidget(m_generalWidget);
|
||||||
|
|
||||||
m_ui->stackedWidget->addWidget(m_securityTabWidget);
|
m_ui->stackedWidget->addWidget(m_securityTabWidget);
|
||||||
|
@ -119,6 +119,8 @@ void SettingsWidgetKeeShare::saveSettings()
|
|||||||
KeeShare::setOwn(m_own);
|
KeeShare::setOwn(m_own);
|
||||||
KeeShare::setForeign(m_foreign);
|
KeeShare::setForeign(m_foreign);
|
||||||
KeeShare::setActive(active);
|
KeeShare::setActive(active);
|
||||||
|
|
||||||
|
config()->set("KeeShare/QuietSuccess", m_ui->quietSuccessCheckBox->isChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsWidgetKeeShare::setVerificationExporter(const QString& signer)
|
void SettingsWidgetKeeShare::setVerificationExporter(const QString& signer)
|
||||||
|
@ -29,6 +29,13 @@
|
|||||||
<string>Active</string>
|
<string>Active</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QCheckBox" name="enableImportCheckBox">
|
||||||
|
<property name="text">
|
||||||
|
<string>Allow import</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QCheckBox" name="enableExportCheckBox">
|
<widget class="QCheckBox" name="enableExportCheckBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -36,10 +43,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="1">
|
||||||
<widget class="QCheckBox" name="enableImportCheckBox">
|
<widget class="QCheckBox" name="quietSuccessCheckBox">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Allow import</string>
|
<string>Only show warnings and errors</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -148,7 +148,7 @@ void ShareObserver::notifyAbout(const QStringList& success, const QStringList& w
|
|||||||
{
|
{
|
||||||
QStringList messages;
|
QStringList messages;
|
||||||
MessageWidget::MessageType type = MessageWidget::Positive;
|
MessageWidget::MessageType type = MessageWidget::Positive;
|
||||||
if (!(success.isEmpty() || config()->get("GUI/QuietKeeShareSuccess").toBool())) {
|
if (!(success.isEmpty() || config()->get("KeeShare/QuietSuccess", true).toBool())) {
|
||||||
messages += success;
|
messages += success;
|
||||||
}
|
}
|
||||||
if (!warning.isEmpty()) {
|
if (!warning.isEmpty()) {
|
||||||
@ -219,8 +219,7 @@ ShareObserver::Result ShareObserver::importShare(const QString& path)
|
|||||||
const auto changePath = resolvePath(path, m_db);
|
const auto changePath = resolvePath(path, m_db);
|
||||||
auto shareGroup = m_shareToGroup.value(changePath);
|
auto shareGroup = m_shareToGroup.value(changePath);
|
||||||
if (!shareGroup) {
|
if (!shareGroup) {
|
||||||
qWarning("Source for %s does not exist", qPrintable(path));
|
qWarning("Group for %s does not exist", qPrintable(path));
|
||||||
Q_ASSERT(shareGroup);
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
const auto reference = KeeShare::referenceOf(shareGroup);
|
const auto reference = KeeShare::referenceOf(shareGroup);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user