mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-1191 Added message box stating that board reboot is needed after bind/unbind
This commit is contained in:
parent
cebe236c44
commit
6bfbe88813
@ -30,6 +30,7 @@
|
|||||||
#include <coreplugin/generalsettings.h>
|
#include <coreplugin/generalsettings.h>
|
||||||
#include <oplinksettings.h>
|
#include <oplinksettings.h>
|
||||||
#include <oplinkstatus.h>
|
#include <oplinkstatus.h>
|
||||||
|
#include <QMessageBox>
|
||||||
|
|
||||||
ConfigPipXtremeWidget::ConfigPipXtremeWidget(QWidget *parent) : ConfigTaskWidget(parent)
|
ConfigPipXtremeWidget::ConfigPipXtremeWidget(QWidget *parent) : ConfigTaskWidget(parent)
|
||||||
{
|
{
|
||||||
@ -304,6 +305,7 @@ void ConfigPipXtremeWidget::bind()
|
|||||||
quint32 boundPairId = m_oplink->CoordID->text().toUInt(&ok, 16);
|
quint32 boundPairId = m_oplink->CoordID->text().toUInt(&ok, 16);
|
||||||
(pairid != boundPairId) ? m_oplink->CoordID->setText(QString::number(pairid, 16).toUpper()) : m_oplink->CoordID->setText("0");
|
(pairid != boundPairId) ? m_oplink->CoordID->setText(QString::number(pairid, 16).toUpper()) : m_oplink->CoordID->setText("0");
|
||||||
}
|
}
|
||||||
|
QMessageBox::information(this, tr("Information", "To apply the changes when binding/unbinding the board must be rebooted or power cycled."), QMessageBox::Ok);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget_3">
|
<widget class="QTabWidget" name="tabWidget_3">
|
||||||
<widget class="QWidget" name="tabWidget_3Page1" native="true">
|
<widget class="QWidget" name="tabWidget_3Page1">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>OPLink configuration</string>
|
<string>OPLink configuration</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
@ -686,7 +686,7 @@
|
|||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>This is the coordinator id currently bound to.</string>
|
<string><html><head/><body><p>This is the coordinator id we currently are bound to.</p><p>To manually bind to a specific coordinator, just type</p><p>or paste its device id in this box and save.</p><p>The device must be rebooted for the binding to take place.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="maxLength">
|
<property name="maxLength">
|
||||||
<number>8</number>
|
<number>8</number>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user