Skip to content

Commit

Permalink
add ssh toggles
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreSato committed Oct 20, 2024
1 parent 1092cec commit 8d884f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions selfdrive/ui/qt/offroad/settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ void DevicePanel::poweroff() {
DeveloperPanel::DeveloperPanel(SettingsWindow *parent) : ListWidget(parent) {
hellolBtn = new ButtonControl("Hello World", "HAI WRLD");
addItem(hellolBtn);

// SSH keys
addItem(new SshToggle());
addItem(new SshControl());
}

void SettingsWindow::showEvent(QShowEvent *event) {
Expand Down
2 changes: 2 additions & 0 deletions selfdrive/ui/qt/offroad/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include "selfdrive/ui/qt/util.h"
#include "selfdrive/ui/qt/widgets/controls.h"

#include "selfdrive/ui/qt/widgets/ssh_keys.h"

// ********** settings window + top-level panels **********
class SettingsWindow : public QFrame {
Q_OBJECT
Expand Down

0 comments on commit 8d884f0

Please sign in to comment.