mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #392 Add config window for FSX
* Added plugin_fsx_config subproject * Removed CSettingsFsxComponent from BlackGui * Added CSimConnectSettingsComponent * Add x-plane_install_10.txt path for Windows
This commit is contained in:
committed by
Mathew Sutcliffe
parent
cf3102333b
commit
3781cf2095
@@ -228,10 +228,6 @@ namespace BlackGui
|
||||
|
||||
void CSettingsSimulatorComponent::ps_simulatorPluginChanged(const CSimulatorPluginInfo &info)
|
||||
{
|
||||
// disable / enable driver specific GUI parts
|
||||
bool hasFsxDriver = this->getIContextSimulator()->getAvailableSimulatorPlugins().supportsSimulator(QStringLiteral("fsx"));
|
||||
this->ui->comp_SettingsSimulatorFsx->setVisible(hasFsxDriver);
|
||||
|
||||
// I intentionally to not set the selected plugin combobox here
|
||||
// as this would cause undesired rountrips
|
||||
|
||||
@@ -281,6 +277,7 @@ namespace BlackGui
|
||||
QString configId = m_plugins->getPluginConfigId(selected->getIdentifier());
|
||||
IPluginConfig *config = m_plugins->getPluginById<IPluginConfig>(configId);
|
||||
CPluginConfigWindow *window = config->createConfigWindow(qApp->activeWindow());
|
||||
CEnableForRuntime::setRuntimeForComponents(getRuntime(), window);
|
||||
window->setAttribute(Qt::WA_DeleteOnClose);
|
||||
window->show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user