@@ -370,12 +370,12 @@ void NvidiaInstaller::installProprietary(bool agreementAccepted) {
370370 NvidiaInstaller::tr (
371371 " Installing the closed-source NVIDIA driver with one privileged "
372372 " authorization..." ));
373- emitProgressAsync (guard,
374- NvidiaInstaller::tr (
375- " Closed-source install packages for %1: %2 " )
376- .arg (NvidiaInstaller::tr ( " Wayland " ))
377- . arg ( quotedList ( buildDriverInstallTargets (
378- QStringLiteral ( " akmod-nvidia " ), sessionType))) );
373+ const QString installPackagesMessage =
374+ NvidiaInstaller::tr (" Closed-source install packages for %1: %2 " )
375+ . arg ( NvidiaInstaller::tr ( " Wayland " ) )
376+ .arg (quotedList ( buildDriverInstallTargets (
377+ QStringLiteral ( " akmod-nvidia " ), sessionType)));
378+ emitProgressAsync (guard, installPackagesMessage );
379379
380380 QStringList installArgs{QStringLiteral (" install" ), QStringLiteral (" -y" ),
381381 QStringLiteral (" --refresh" ),
@@ -399,13 +399,15 @@ void NvidiaInstaller::installProprietary(bool agreementAccepted) {
399399 {QStringLiteral (" akmods" ), {QStringLiteral (" --force" )}});
400400 rootCommands.append (buildSessionSpecificRootCommands (sessionType));
401401
402- emitProgressAsync (guard, NvidiaInstaller::tr (" Detected %1 session via %2." )
403- .arg (sessionType == QStringLiteral (" wayland" )
404- ? NvidiaInstaller::tr (" Wayland" )
405- : sessionType,
406- sessionInfo.source .isEmpty ()
407- ? NvidiaInstaller::tr (" session probe" )
408- : sessionInfo.source ));
402+ const QString detectedSessionMessage =
403+ NvidiaInstaller::tr (" Detected %1 session via %2." )
404+ .arg (sessionType == QStringLiteral (" wayland" )
405+ ? NvidiaInstaller::tr (" Wayland" )
406+ : sessionType,
407+ sessionInfo.source .isEmpty ()
408+ ? NvidiaInstaller::tr (" session probe" )
409+ : sessionInfo.source );
410+ emitProgressAsync (guard, detectedSessionMessage);
409411
410412 auto result = runner.runAsRootBatch (rootCommands, runOptions);
411413 if (!result.success ()) {
@@ -511,13 +513,15 @@ void NvidiaInstaller::installOpenSource() {
511513 {QStringLiteral (" akmods" ), {QStringLiteral (" --force" )}});
512514 rootCommands.append (buildSessionSpecificRootCommands (sessionType));
513515
514- emitProgressAsync (guard, NvidiaInstaller::tr (" Detected %1 session via %2." )
515- .arg (sessionType == QStringLiteral (" wayland" )
516- ? NvidiaInstaller::tr (" Wayland" )
517- : sessionType,
518- sessionInfo.source .isEmpty ()
519- ? NvidiaInstaller::tr (" session probe" )
520- : sessionInfo.source ));
516+ const QString detectedSessionMessage =
517+ NvidiaInstaller::tr (" Detected %1 session via %2." )
518+ .arg (sessionType == QStringLiteral (" wayland" )
519+ ? NvidiaInstaller::tr (" Wayland" )
520+ : sessionType,
521+ sessionInfo.source .isEmpty ()
522+ ? NvidiaInstaller::tr (" session probe" )
523+ : sessionInfo.source );
524+ emitProgressAsync (guard, detectedSessionMessage);
521525
522526 auto result = runner.runAsRootBatch (rootCommands, runOptions);
523527 if (!result.success ()) {
0 commit comments