Added logic to auto open log file dialog window if file logging is checked and a start logging event occurs.

This commit is contained in:
Matthew Budd 2020-10-02 22:14:00 -04:00
parent 4fc2224309
commit 896a979689
1 changed files with 9 additions and 0 deletions

View File

@ -354,9 +354,18 @@ void TraceLoggerDialog_t::toggleLoggingOnOff(void)
usleep( 1000 );
pushMsgToLogBuffer("Logging Finished");
startStopButton->setText( tr("Start Logging") );
if ( logFile )
{
fclose( logFile ); logFile = NULL;
}
}
else
{
if ( logFileCbox->isChecked() )
{
openLogFile();
}
pushMsgToLogBuffer("Log Start");
startStopButton->setText( tr("Stop Logging") );
logging = 1;