Revert "unlikely but why not"

This reverts commit 72f45a7516.
This commit is contained in:
Jason Wen
2025-01-12 09:45:36 -05:00
parent 72f45a7516
commit 5f4dd47ab5
+4 -6
View File
@@ -203,6 +203,10 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
});
addItem(pair_device);
QObject::connect(uiState()->prime_state, &PrimeState::changed, [this] (PrimeState::Type type) {
pair_device->setVisible(type == PrimeState::PRIME_TYPE_UNPAIRED);
});
#ifndef SUNNYPILOT
// offroad-only buttons
@@ -257,13 +261,7 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
}
});
addItem(translateBtn);
#endif
QObject::connect(uiState()->prime_state, &PrimeState::changed, [this] (PrimeState::Type type) {
pair_device->setVisible(type == PrimeState::PRIME_TYPE_UNPAIRED);
});
#ifndef SUNNYPILOT
QObject::connect(uiState(), &UIState::offroadTransition, [=](bool offroad) {
for (auto btn : findChildren<ButtonControl *>()) {
if (btn != pair_device) {