[partition] Be verbose about handling osprober results

This commit is contained in:
Adriaan de Groot 2019-02-11 05:32:42 -05:00
parent 2c6ff26aaa
commit 273461a497

View File

@ -1246,6 +1246,7 @@ ChoicePage::setupActions()
if ( osproberEntriesForCurrentDevice.count() == 0 ) if ( osproberEntriesForCurrentDevice.count() == 0 )
{ {
CALAMARES_RETRANSLATE( CALAMARES_RETRANSLATE(
cDebug() << "Setting texts for 0 osprober entries";
m_messageLabel->setText( tr( "This storage device does not seem to have an operating system on it. " m_messageLabel->setText( tr( "This storage device does not seem to have an operating system on it. "
"What would you like to do?<br/>" "What would you like to do?<br/>"
"You will be able to review and confirm your choices " "You will be able to review and confirm your choices "
@ -1278,6 +1279,7 @@ ChoicePage::setupActions()
if ( !osName.isEmpty() ) if ( !osName.isEmpty() )
{ {
CALAMARES_RETRANSLATE( CALAMARES_RETRANSLATE(
cDebug() << "Setting texts for 1 non-empty osprober entry";
m_messageLabel->setText( tr( "This storage device has %1 on it. " m_messageLabel->setText( tr( "This storage device has %1 on it. "
"What would you like to do?<br/>" "What would you like to do?<br/>"
"You will be able to review and confirm your choices " "You will be able to review and confirm your choices "
@ -1301,6 +1303,7 @@ ChoicePage::setupActions()
else else
{ {
CALAMARES_RETRANSLATE( CALAMARES_RETRANSLATE(
cDebug() << "Setting texts for 1 empty osprober entry";
m_messageLabel->setText( tr( "This storage device already has an operating system on it. " m_messageLabel->setText( tr( "This storage device already has an operating system on it. "
"What would you like to do?<br/>" "What would you like to do?<br/>"
"You will be able to review and confirm your choices " "You will be able to review and confirm your choices "
@ -1325,6 +1328,8 @@ ChoicePage::setupActions()
// osproberEntriesForCurrentDevice has at least 2 items. // osproberEntriesForCurrentDevice has at least 2 items.
CALAMARES_RETRANSLATE( CALAMARES_RETRANSLATE(
cDebug() << "Setting texts for >= 2 osprober entries";
m_messageLabel->setText( tr( "This storage device has multiple operating systems on it. " m_messageLabel->setText( tr( "This storage device has multiple operating systems on it. "
"What would you like to do?<br/>" "What would you like to do?<br/>"
"You will be able to review and confirm your choices " "You will be able to review and confirm your choices "