Commit 88ad6264 authored by Jonathan Marten's avatar Jonathan Marten
Browse files

New mail notifier: Allow build without QtTextToSpeech

Made optional by commit f7bac15b pending a port to Qt6.
parent d82a9c25
Pipeline #81077 canceled with stage
......@@ -42,7 +42,6 @@ target_link_libraries( akonadi_newmailnotifier_agent
KF5::Notifications
KF5::Service
KF5::I18n
Qt::TextToSpeech
)
if(Qt5TextToSpeech_FOUND)
......
......@@ -179,8 +179,8 @@ void NewMailNotifierSettingsWidget::load()
mExcludeMySelf->setChecked(settings->excludeEmailsFromMe());
mAllowToShowMail->setChecked(settings->showButtonToDisplayMail());
mKeepPersistentNotification->setChecked(settings->keepPersistentNotification());
mTextToSpeak->setChecked(settings->textToSpeakEnabled());
#if HAVE_TEXT_TO_SPEECH_SUPPORT
mTextToSpeak->setChecked(settings->textToSpeakEnabled());
mTextToSpeakSetting->setEnabled(mTextToSpeak->isChecked());
mTextToSpeakSetting->setText(settings->textToSpeak());
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment