Commit 0d3b70d5 authored by Aline Lermen's avatar Aline Lermen Committed by Christoph Cullmann
Browse files

Default sync for filebrowser plugin

Defaults 'automatically synchronize with current document' on the File Browser plugin to checked.
parent c2a5da7b
Pipeline #134695 passed with stage
in 2 minutes and 16 seconds
......@@ -161,7 +161,7 @@ void KateFileBrowser::readSessionConfig(const KConfigGroup &cg)
m_urlNavigator->setLocationUrl(cg.readEntry("location", QUrl::fromLocalFile(QDir::homePath())));
setDir(cg.readEntry("location", QUrl::fromLocalFile(QDir::homePath())));
m_autoSyncFolder->setChecked(cg.readEntry("auto sync folder", false));
m_autoSyncFolder->setChecked(cg.readEntry("auto sync folder", true));
m_filter->setHistoryItems(cg.readEntry("filter history", QStringList()), true);
}
......@@ -381,6 +381,7 @@ void KateFileBrowser::setupActions()
m_autoSyncFolder = new QAction(this);
m_autoSyncFolder->setCheckable(true);
m_autoSyncFolder->setText(i18n("Automatically synchronize with current document"));
m_autoSyncFolder->setChecked(true);
m_autoSyncFolder->setIcon(QIcon::fromTheme(QStringLiteral("system-switch-user")));
connect(m_autoSyncFolder, &QAction::triggered, this, &KateFileBrowser::autoSyncFolder);
optionsMenu->addAction(m_autoSyncFolder);
......
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