[calamares] Restore functionality for 'center window'

This commit is contained in:
Adriaan de Groot 2020-01-07 00:34:15 +01:00
parent 60c659c82b
commit 43caf7b46a

View File

@ -357,6 +357,10 @@ CalamaresApplication::initView()
QTimer::singleShot( 0, m_moduleManager, &Calamares::ModuleManager::loadModules );
if ( Calamares::Branding::instance() && Calamares::Branding::instance()->windowPlacementCentered() )
{
m_mainwindow->move( this->desktop()->availableGeometry().center() - m_mainwindow->rect().center() );
}
cDebug() << "STARTUP: CalamaresWindow created; loadModules started";
}