Skip to content

Commit

Permalink
Settings - Open web browser with Tailscale admin panel when button is…
Browse files Browse the repository at this point in the history
… clicked in UI
  • Loading branch information
SneWs committed Jul 10, 2024
1 parent ec11eef commit 9bfe932
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <QDir>
#include <QFile>
#include <QDesktopServices>

MainWindow::MainWindow(QWidget* parent)
: QMainWindow(parent)
Expand Down Expand Up @@ -49,6 +50,12 @@ MainWindow::MainWindow(QWidget* parent)
connect(ui->btnSettingsClose, &QPushButton::clicked,
this, &MainWindow::settingsClosed);

connect(ui->btnAdminConsole, &QPushButton::clicked,
this, [this]() {
QDesktopServices::openUrl(QUrl("https://login.tailscale.com/admin"));
}
);

syncSettingsToUi();
}

Expand Down

0 comments on commit 9bfe932

Please sign in to comment.