From ab4f2c82244050de3802ea2f56c12acb0e3802f1 Mon Sep 17 00:00:00 2001 From: Paddle Date: Sun, 30 Jul 2023 16:05:52 +0200 Subject: [PATCH] QMessage should not be used to notify that. Here we should use the requireRestart functionality. --- src/Gui/DlgSettingsNotificationArea.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Gui/DlgSettingsNotificationArea.cpp b/src/Gui/DlgSettingsNotificationArea.cpp index 6ec60374d1..e7949cf651 100644 --- a/src/Gui/DlgSettingsNotificationArea.cpp +++ b/src/Gui/DlgSettingsNotificationArea.cpp @@ -41,18 +41,12 @@ DlgSettingsNotificationArea::DlgSettingsNotificationArea(QWidget* parent) ui->setupUi(this); adaptUiToAreaEnabledState(ui->NotificationAreaEnabled->isChecked()); - connect(ui->NotificationAreaEnabled, &QCheckBox::stateChanged, [this](int state) { bool enabled = state == Qt::CheckState::Checked; this->adaptUiToAreaEnabledState(enabled); if (enabled) { - QMessageBox::information(this, - tr("Notification Area"), - tr("Activation of the Notification Area only takes effect " - "after an application restart.")); - // N.B: Deactivation is handled by the Notification Area itself, as it listens to all - // its configuration parameters. + this->requireRestart(); } }); }