mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1357cace7 |
@@ -104,12 +104,12 @@ void LiveWindow::SetEnabled(bool enabled) {
|
|||||||
// Force table generation now to make sure everything is defined
|
// Force table generation now to make sure everything is defined
|
||||||
UpdateValuesUnsafe();
|
UpdateValuesUnsafe();
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
this->enabled();
|
if (this->enabled) this->enabled();
|
||||||
} else {
|
} else {
|
||||||
m_impl->registry.ForeachLiveWindow(m_impl->dataHandle, [&](auto& cbdata) {
|
m_impl->registry.ForeachLiveWindow(m_impl->dataHandle, [&](auto& cbdata) {
|
||||||
cbdata.builder.StopLiveWindowMode();
|
cbdata.builder.StopLiveWindowMode();
|
||||||
});
|
});
|
||||||
this->disabled();
|
if (this->disabled) this->disabled();
|
||||||
}
|
}
|
||||||
m_impl->enabledEntry.SetBoolean(enabled);
|
m_impl->enabledEntry.SetBoolean(enabled);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user