mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-09-20 08:05:40 +00:00
parent
316a7e6fb7
commit
e98c30f633
@ -599,6 +599,11 @@ void MainWindow::lockDatabasesAfterInactivity()
|
|||||||
|
|
||||||
bool MainWindow::isTrayIconEnabled() const
|
bool MainWindow::isTrayIconEnabled() const
|
||||||
{
|
{
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
// systray not useful on OS X
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
return config()->get("GUI/ShowTrayIcon").toBool()
|
return config()->get("GUI/ShowTrayIcon").toBool()
|
||||||
&& QSystemTrayIcon::isSystemTrayAvailable();
|
&& QSystemTrayIcon::isSystemTrayAvailable();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,11 @@ SettingsWidget::SettingsWidget(QWidget* parent)
|
|||||||
|
|
||||||
m_generalUi->autoTypeShortcutWidget->setVisible(autoType()->isAvailable());
|
m_generalUi->autoTypeShortcutWidget->setVisible(autoType()->isAvailable());
|
||||||
m_generalUi->autoTypeShortcutLabel->setVisible(autoType()->isAvailable());
|
m_generalUi->autoTypeShortcutLabel->setVisible(autoType()->isAvailable());
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
// systray not useful on OS X
|
||||||
|
m_generalUi->systrayShowCheckBox->setVisible(false);
|
||||||
|
m_generalUi->systrayMinimizeToTrayCheckBox->setVisible(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
connect(this, SIGNAL(accepted()), SLOT(saveSettings()));
|
connect(this, SIGNAL(accepted()), SLOT(saveSettings()));
|
||||||
connect(this, SIGNAL(rejected()), SLOT(reject()));
|
connect(this, SIGNAL(rejected()), SLOT(reject()));
|
||||||
|
Loading…
Reference in New Issue
Block a user