[libcalamaresui] Ensure all button labels are accurate

- since lots of state is updated when the labels change, call that
  in the constructor so that any QML bindings get current values.
This commit is contained in:
Adriaan de Groot 2020-04-02 15:48:43 +02:00
parent c755c7ed98
commit 476a576dda

View File

@ -94,12 +94,12 @@ ViewManager::ViewManager( QObject* parent )
m_stack->setContentsMargins( 0, 0, 0, 0 );
mainLayout->addWidget( m_stack );
CALAMARES_RETRANSLATE_SLOT( &ViewManager::updateButtonLabels )
updateButtonLabels();
connect( JobQueue::instance(), &JobQueue::failed, this, &ViewManager::onInstallationFailed );
connect( JobQueue::instance(), &JobQueue::finished, this, &ViewManager::next );
UPDATE_BUTTON_PROPERTY( quitVisible, !Calamares::Settings::instance()->disableCancel() )
CALAMARES_RETRANSLATE_SLOT( &ViewManager::updateButtonLabels )
}