void ConfigurationManager::updateAutostart() { PlatformPtr platform = createPlatformNativeInterface(); if ( platform->canAutostart() ) { bind<Config::autostart>(ui->checkBoxAutostart); } else { ui->checkBoxAutostart->hide(); } }