diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-05-12 11:46:58 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-05-12 11:56:21 +0200 |
| commit | 7c8558da362fda976eaef44bb0fbb63ae3082d17 (patch) | |
| tree | a3aab66893f5a23af3269b0f1f9d6629d9813313 /src/qt/optionsdialog.cpp | |
| parent | Merge #8004: signal handling: fReopenDebugLog and fRequestShutdown should be ... (diff) | |
| parent | Qt: Add option to hide the system tray icon (diff) | |
| download | discoin-7c8558da362fda976eaef44bb0fbb63ae3082d17.tar.xz discoin-7c8558da362fda976eaef44bb0fbb63ae3082d17.zip | |
Merge #8006: Qt: Add option to disable the system tray icon
8b0e497 Qt: Add option to hide the system tray icon (Tyler Hardin)
Diffstat (limited to 'src/qt/optionsdialog.cpp')
| -rw-r--r-- | src/qt/optionsdialog.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp index 95a3fa8d2..f2db39889 100644 --- a/src/qt/optionsdialog.cpp +++ b/src/qt/optionsdialog.cpp @@ -198,6 +198,7 @@ void OptionsDialog::setMapper() /* Window */ #ifndef Q_OS_MAC + mapper->addMapping(ui->hideTrayIcon, OptionsModel::HideTrayIcon); mapper->addMapping(ui->minimizeToTray, OptionsModel::MinimizeToTray); mapper->addMapping(ui->minimizeOnClose, OptionsModel::MinimizeOnClose); #endif @@ -243,6 +244,19 @@ void OptionsDialog::on_cancelButton_clicked() reject(); } +void OptionsDialog::on_hideTrayIcon_stateChanged(int fState) +{ + if(fState) + { + ui->minimizeToTray->setChecked(false); + ui->minimizeToTray->setEnabled(false); + } + else + { + ui->minimizeToTray->setEnabled(true); + } +} + void OptionsDialog::showRestartWarning(bool fPersistent) { ui->statusLabel->setStyleSheet("QLabel { color: red; }"); |