Disable notification art when tray notification is selected

This commit is contained in:
Jonas Kvinge 2019-04-20 23:15:34 +02:00
parent a499a70633
commit 4cc926a627
1 changed files with 2 additions and 0 deletions

View File

@ -334,10 +334,12 @@ void NotificationsSettingsPage::NotificationTypeChanged() {
bool enabled = !ui_->notifications_none->isChecked();
bool pretty = ui_->notifications_pretty->isChecked();
bool tray = ui_->notifications_tray->isChecked();
ui_->notifications_general->setEnabled(enabled);
ui_->notifications_pretty_group->setEnabled(pretty);
ui_->notifications_custom_text_group->setEnabled(enabled);
ui_->notifications_art->setEnabled(!tray);
#ifdef Q_OS_MACOS
ui_->notifications_options->setEnabled(pretty);