Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e63a4cab authored by Laurent Montel's avatar Laurent Montel 😁

Load settings

parent 72da7b57
......@@ -18,7 +18,7 @@
*/
#include "languagetoolconfigwidget.h"
#include "languagetoolmanager.h"
#include <KLocalizedString>
#include <QVBoxLayout>
......@@ -54,6 +54,7 @@ LanguageToolConfigWidget::LanguageToolConfigWidget(QWidget *parent)
mInstancePath->setEnabled(b);}
);
mainLayout->addStretch(1);
loadSettings();
}
LanguageToolConfigWidget::~LanguageToolConfigWidget()
......@@ -63,8 +64,12 @@ LanguageToolConfigWidget::~LanguageToolConfigWidget()
void LanguageToolConfigWidget::loadSettings()
{
mUseLocalInstance->setChecked(LanguageToolManager::self()->useLocalInstance());
mInstancePath->setText(LanguageToolManager::self()->languageToolPath());
}
void LanguageToolConfigWidget::saveSettings()
{
LanguageToolManager::self()->setUseLocalInstance(mUseLocalInstance->isChecked());
LanguageToolManager::self()->setLanguageToolPath(mInstancePath->text());
}
Markdown is supported
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