mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Do not keep the log if the log window is not visible.
This commit is contained in:
parent
b608f5a670
commit
47eb5ff1d9
1 changed files with 3 additions and 1 deletions
|
@ -132,7 +132,9 @@ LogBrowser::~LogBrowser()
|
|||
|
||||
void LogBrowser::slotNewLog( const QString& msg )
|
||||
{
|
||||
_logWidget->appendPlainText( msg );
|
||||
if( _logWidget->isVisible() ) {
|
||||
_logWidget->appendPlainText( msg );
|
||||
}
|
||||
|
||||
if( _logstream ) {
|
||||
(*_logstream) << msg << endl;
|
||||
|
|
Loading…
Reference in a new issue