hooked backAndNextVisible signal to nonQML navigation

This commit is contained in:
Anubhav Choudhary 2021-01-13 22:41:25 +05:30
parent a9539018e9
commit 0ff32784d1

View File

@ -162,6 +162,7 @@ CalamaresWindow::getWidgetNavigation( QWidget* parent )
connect( m_viewManager, &Calamares::ViewManager::backIconChanged, this, [=]( QString n ) {
setButtonIcon( back, n );
} );
connect( m_viewManager, &Calamares::ViewManager::backAndNextVisibleChanged, back, &QPushButton::setVisible );
bottomLayout->addWidget( back );
}
{
@ -174,6 +175,7 @@ CalamaresWindow::getWidgetNavigation( QWidget* parent )
connect( m_viewManager, &Calamares::ViewManager::nextIconChanged, this, [=]( QString n ) {
setButtonIcon( next, n );
} );
connect( m_viewManager, &Calamares::ViewManager::backAndNextVisibleChanged, next, &QPushButton::setVisible );
bottomLayout->addWidget( next );
}
bottomLayout->addSpacing( 12 );