mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +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();
|
const QStringList spellcheckLanguages = settings.value(QSL("Languages")).toStringList();
|
||||||
settings.endGroup();
|
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 = {
|
QStringList dictionariesDirs = {
|
||||||
#ifdef Q_OS_OSX
|
#ifdef Q_OS_OSX
|
||||||
QDir::cleanPath(QCoreApplication::applicationDirPath() + QL1S("/../Contents/Resources/qtwebengine_dictionaries")),
|
QDir::cleanPath(QCoreApplication::applicationDirPath() + QL1S("/../Contents/Resources/qtwebengine_dictionaries")),
|
||||||
|
Loading…
Reference in New Issue
Block a user