mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Preferences: Disable spell check language list when disabled
This commit is contained in:
parent
fb38307783
commit
6e2d8d8fe7
@ -411,6 +411,13 @@ Preferences::Preferences(BrowserWindow* window)
|
||||
const QStringList spellcheckLanguages = settings.value(QSL("Languages")).toStringList();
|
||||
settings.endGroup();
|
||||
|
||||
auto updateSpellCheckEnabled = [this]() {
|
||||
ui->spellcheckLanguages->setEnabled(ui->spellcheckEnabled->isChecked());
|
||||
ui->spellcheckNoLanguages->setEnabled(ui->spellcheckEnabled->isChecked());
|
||||
};
|
||||
updateSpellCheckEnabled();
|
||||
connect(ui->spellcheckEnabled, &QCheckBox::toggled, this, updateSpellCheckEnabled);
|
||||
|
||||
QStringList dictionariesDirs = {
|
||||
#ifdef Q_OS_OSX
|
||||
QDir::cleanPath(QCoreApplication::applicationDirPath() + QL1S("/../Contents/Resources/qtwebengine_dictionaries")),
|
||||
|
Loading…
Reference in New Issue
Block a user