[calamares] Apply newer clang-formatting

This commit is contained in:
Adriaan de Groot 2024-04-17 10:52:32 +02:00
parent 8408a3284b
commit df09d7ae89
2 changed files with 7 additions and 4 deletions

View File

@ -42,7 +42,7 @@
static void static void
crash() crash()
{ {
kill(getpid(), SIGTRAP); kill( getpid(), SIGTRAP );
} }
/// @brief Print out the widget tree (names) in indented form. /// @brief Print out the widget tree (names) in indented form.

View File

@ -560,10 +560,13 @@ main( int argc, char* argv[] )
cDebug() << Logger::SubEntry << "Module metadata" << TR( "name", m->name() ) << TR( "type", m->typeString() ) cDebug() << Logger::SubEntry << "Module metadata" << TR( "name", m->name() ) << TR( "type", m->typeString() )
<< TR( "interface", m->interfaceString() ); << TR( "interface", m->interfaceString() );
Calamares::JobQueue::instance()->enqueue(100, m->jobs()); Calamares::JobQueue::instance()->enqueue( 100, m->jobs() );
QObject::connect(Calamares::JobQueue::instance(), &Calamares::JobQueue::finished, [application]() { QTimer::singleShot(std::chrono::seconds(3), application, &QApplication::quit); }); QObject::connect( Calamares::JobQueue::instance(),
QTimer::singleShot(0, []() { Calamares::JobQueue::instance()->start(); }); &Calamares::JobQueue::finished,
[ application ]()
{ QTimer::singleShot( std::chrono::seconds( 3 ), application, &QApplication::quit ); } );
QTimer::singleShot( 0, []() { Calamares::JobQueue::instance()->start(); } );
return application->exec(); return application->exec();
} }