Skip to content

Commit

Permalink
Don't autoscroll developer logs when not visible
Browse files Browse the repository at this point in the history
This can be expensive when the log models get large
  • Loading branch information
nyalldawson committed Feb 1, 2023
1 parent 0c52f51 commit f5326af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -82,7 +82,7 @@ QgsNetworkLoggerTreeView::QgsNetworkLoggerTreeView( QgsNetworkLogger *logger, QW
mLogger->removeRequestRows( rowsToTrim );
}

if ( mAutoScroll )
if ( mAutoScroll && isVisible() )
scrollToBottom();
} );

Expand Down
2 changes: 1 addition & 1 deletion src/app/devtools/querylogger/qgsqueryloggerpanelwidget.cpp
Expand Up @@ -82,7 +82,7 @@ QgsDatabaseQueryLoggerTreeView::QgsDatabaseQueryLoggerTreeView( QgsAppQueryLogge
mLogger->removeRequestRows( rowsToTrim );
}

if ( mAutoScroll )
if ( mAutoScroll && isVisible() )
scrollToBottom();
} );

Expand Down

0 comments on commit f5326af

Please sign in to comment.