Commit 231f78a0 authored by Gregor Mi's avatar Gregor Mi

Recent File List Entry Count: persist setting

parent 3703dfb5
......@@ -20,6 +20,3 @@ build
# from dolphin
.directory
# from CMake
CMakeFiles/cmake.check_cache
......@@ -149,6 +149,9 @@ KateConfigDialog::KateConfigDialog(KateMainWindow *parent, KTextEditor::View *vi
// restore view config
sessionConfigUi->restoreVC->setChecked( cgGeneral.readEntry("Restore Window Configuration", true) );
connect(sessionConfigUi->restoreVC, SIGNAL(toggled(bool)), this, SLOT(slotChanged()) );
sessionConfigUi->spinBoxRecentFilesCount->setValue(cgGeneral.readEntry("Recent File List Entry Count", 10));
connect(sessionConfigUi->spinBoxRecentFilesCount, SIGNAL(valueChanged(int)), this, SLOT(slotChanged()));
QString sesStart (cgGeneral.readEntry ("Startup Session", "manual"));
if (sesStart == QStringLiteral("new"))
......@@ -302,6 +305,8 @@ void KateConfigDialog::slotApply()
KConfigGroup cg = KConfigGroup(config, "General");
cg.writeEntry("Restore Window Configuration", sessionConfigUi->restoreVC->isChecked());
cg.writeEntry("Recent File List Entry Count", sessionConfigUi->spinBoxRecentFilesCount->value());
if (sessionConfigUi->startNewSessionRadioButton->isChecked()) {
cg.writeEntry("Startup Session", "new");
......
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