mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Remove outdated comment
UpdateToolbars is no longer slow
This commit is contained in:
parent
ed0e4064d2
commit
550567d8f2
@ -450,10 +450,8 @@ void TocWidget::updateViewNow()
|
|||||||
void TocWidget::finishUpdateView()
|
void TocWidget::finishUpdateView()
|
||||||
{
|
{
|
||||||
// Profiling shows that this is the expensive stuff in the context of typing
|
// Profiling shows that this is the expensive stuff in the context of typing
|
||||||
// text and moving with arrows (still five times less than updateToolbars in
|
// text and moving with arrows. For bigger operations, this is negligible,
|
||||||
// my tests with a medium-sized document, however this grows linearly in the
|
// and outweighted by TocModels::reset() anyway.
|
||||||
// size of the document). For bigger operations, this is negligible, and
|
|
||||||
// outweighted by TocModels::reset() anyway.
|
|
||||||
if (canNavigate()) {
|
if (canNavigate()) {
|
||||||
if (!persistent_)
|
if (!persistent_)
|
||||||
setTreeDepth(depth_);
|
setTreeDepth(depth_);
|
||||||
|
Loading…
Reference in New Issue
Block a user