Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
e1b4bc5c
Commit
e1b4bc5c
authored
Aug 27, 2022
by
loh tar
Browse files
Give immediate feedback that option syncWithTabs has an effect
parent
54da0c7f
Pipeline
#223812
passed with stage
in 7 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/katemdi.cpp
View file @
e1b4bc5c
...
...
@@ -546,6 +546,19 @@ void Sidebar::readConfig()
m_syncWithTabs
=
false
;
needsUpdate
=
false
;
}
if
(
m_syncWithTabs
&&
needsUpdate
)
{
// Give the user an immediate feedback that the option has an effect, works not perfect
// when some section is not active, but may better that to do nothing
QList
<
int
>
wsizes
=
m_ownSplit
->
sizes
();
for
(
int
i
=
0
;
i
<
wsizes
.
count
();
++
i
)
{
if
(
wsizes
.
at
(
i
)
==
0
)
{
wsizes
[
i
]
=
tabBar
(
i
)
->
sectionSize
();
}
}
setSizes
(
wsizes
);
adjustSplitterSections
();
needsUpdate
=
false
;
}
// shall we show text for the left and right bars?
const
bool
showTextForLeftRight
=
cgGeneral
.
readEntry
(
"Show text for left and right sidebar"
,
false
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment