src/connection.cpp
// Update the UI with the status
Update the UI with the status
Update the UI with the status
void ConnectionLoader::showInformation(QString info, QString detail) {
    static int rescanCount = 0;
    if (detail.toLower().startsWith("rescan")) {
        rescanCount++;
    }
    if (rescanCount > 10) {
        detail = detail + "\n" + QObject::tr("This may take several hours, grab some popcorn");
    }
    connD->status->setText(info);
    connD->statusDetail->setText(detail);
    if (rescanCount < 10)
        main->logger->write(info + ":" + detail);
}
void ConnectionLoader :: showInformation ( QString info , QString detail ) { static int rescanCount = 0 ; if ( detail . toLower ( ) . startsWith ( " " ) ) { rescanCount ++ ; } if ( rescanCount > 10 ) { detail = detail + " \n " + QObject :: tr ( " " ) ; } connD -> status -> setText ( info ) ; connD -> statusDetail -> setText ( detail ) ; if ( rescanCount < 10 ) main -> logger -> write ( info + " " + detail ) ; }
Update the UI with the status
Update the UI with the status