[welcome] Add detail messages for root and screen checks
- these were empty, so the widgets were hidden in the details dialog of the requirements check; which looks really strange if the reason the check fails is because root is required, and you can't see that in the details. This commit is on a branch because it changes strings, and I want to do a release Real Soon and not annoy the translators.
This commit is contained in:
parent
6db4d2ed37
commit
6b77d5db4a
@ -151,7 +151,7 @@ Calamares::RequirementsList GeneralRequirements::checkRequirements()
|
|||||||
else if ( entry == "root" )
|
else if ( entry == "root" )
|
||||||
checkEntries.append( {
|
checkEntries.append( {
|
||||||
entry,
|
entry,
|
||||||
[]{ return QString(); }, //we hide it
|
[]{ return tr( "is running the installer as an administrator (root)" ); },
|
||||||
[]{ return Calamares::Settings::instance()->isSetupMode()
|
[]{ return Calamares::Settings::instance()->isSetupMode()
|
||||||
? tr( "The setup program is not running with administrator rights." )
|
? tr( "The setup program is not running with administrator rights." )
|
||||||
: tr( "The installer is not running with administrator rights." ); },
|
: tr( "The installer is not running with administrator rights." ); },
|
||||||
@ -161,7 +161,7 @@ Calamares::RequirementsList GeneralRequirements::checkRequirements()
|
|||||||
else if ( entry == "screen" )
|
else if ( entry == "screen" )
|
||||||
checkEntries.append( {
|
checkEntries.append( {
|
||||||
entry,
|
entry,
|
||||||
[]{ return QString(); }, // we hide it
|
[]{ return tr( "has a screen large enough to show the whole installer" ); },
|
||||||
[]{ return Calamares::Settings::instance()->isSetupMode()
|
[]{ return Calamares::Settings::instance()->isSetupMode()
|
||||||
? tr( "The screen is too small to display the setup program." )
|
? tr( "The screen is too small to display the setup program." )
|
||||||
: tr( "The screen is too small to display the installer." ); },
|
: tr( "The screen is too small to display the installer." ); },
|
||||||
|
Loading…
Reference in New Issue
Block a user