mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
OP-52 Hide Connect/Disconnect buttons in telemetry mode. Unhide in other modes
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1795 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
c95b1e6117
commit
434a9499e2
@ -89,6 +89,8 @@ void GpsDisplayGadget::loadConfiguration(IUAVGadgetConfiguration* config)
|
||||
#endif
|
||||
m_widget->connectButton->setEnabled(true);
|
||||
m_widget->disconnectButton->setEnabled(false);
|
||||
m_widget->connectButton->setHidden(false);
|
||||
m_widget->disconnectButton->setHidden(false);
|
||||
|
||||
connect(port, SIGNAL(readyRead()), this, SLOT(onDataAvailable()));
|
||||
}
|
||||
@ -97,8 +99,8 @@ void GpsDisplayGadget::loadConfiguration(IUAVGadgetConfiguration* config)
|
||||
} else if (gpsDisplayConfig->connectionMode() == "Telemetry") {
|
||||
qDebug() << "Using Telemetry parser";
|
||||
parser = new TelemetryParser();
|
||||
m_widget->connectButton->setEnabled(false);
|
||||
m_widget->disconnectButton->setEnabled(false);
|
||||
m_widget->disconnectButton->setHidden(true);
|
||||
m_widget->connectButton->setHidden(true);
|
||||
m_widget->dataStreamGroupBox->setHidden(true);
|
||||
} else if (gpsDisplayConfig->connectionMode() == "Network") {
|
||||
// Not implemented for now...
|
||||
|
Loading…
x
Reference in New Issue
Block a user