From 0ff32784d11f1100305180d36eeabb955a0cb5bb Mon Sep 17 00:00:00 2001 From: Anubhav Choudhary Date: Wed, 13 Jan 2021 22:41:25 +0530 Subject: [PATCH] hooked backAndNextVisible signal to nonQML navigation --- src/calamares/CalamaresWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calamares/CalamaresWindow.cpp b/src/calamares/CalamaresWindow.cpp index 103b69a90..0d425d929 100644 --- a/src/calamares/CalamaresWindow.cpp +++ b/src/calamares/CalamaresWindow.cpp @@ -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 );