Commit a9674c26 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

don't hide toolbar on first start for Kate

now that the main window is a lot cleaner, I think we can remove

Kate and KWrite will then look more consistent on first startup

people that dislike the toolbar (like me) can still disable
it via one click in the settings menu
parent d50dc41f
Pipeline #171716 passed with stage
in 11 minutes and 58 seconds
......@@ -104,14 +104,6 @@ KateMainWindow::KateMainWindow(KConfig *sconfig, const QString &sgroup)
KateUpdateDisabler disableUpdates(this);
* get and set config revision
static const int currentConfigRevision = 10;
const int readConfigRevision = KConfigGroup(KSharedConfig::openConfig(), "General").readEntry("Config Revision", 0);
KConfigGroup(KSharedConfig::openConfig(), "General").writeEntry("Config Revision", currentConfigRevision);
const bool firstStart = readConfigRevision < currentConfigRevision;
// start session restore if needed
startRestore(sconfig, sgroup);
......@@ -168,11 +160,6 @@ KateMainWindow::KateMainWindow(KConfig *sconfig, const QString &sgroup)
// Hence, we have to take care of the menu bar here
// on first start: deactivate toolbar for Kate
if (firstStart && KateApp::isKate()) {
// in all cases: avoid that arbitrary plugin toolviews get focus, like terminal, bug 412227
// we need to delay this a bit due to lazy view creation (and lazy e.g. terminal widget creation)
QTimer::singleShot(0, centralWidget(), SLOT(setFocus()));
Supports Markdown
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