replace hardcoded url with REPO_URL macro

This commit is contained in:
uncor3
2025-11-07 19:48:52 +00:00
parent f687550471
commit d1a113987c
4 changed files with 19 additions and 9 deletions
+2 -4
View File
@@ -179,10 +179,8 @@ MainWindow::MainWindow(QWidget *parent)
QIcon(":/resources/icons/MdiGithub.png"), "iDescriptor on GitHub");
githubButton->setCursor(Qt::PointingHandCursor);
githubButton->setFixedSize(24, 24);
connect(githubButton, &ZIconWidget::clicked, this, []() {
QDesktopServices::openUrl(
QUrl("https://github.com/uncor3/iDescriptor"));
});
connect(githubButton, &ZIconWidget::clicked, this,
[]() { QDesktopServices::openUrl(QUrl(REPO_URL)); });
m_connectedDeviceCountLabel = new QLabel("iDescriptor: no devices");
m_connectedDeviceCountLabel->setContentsMargins(5, 0, 5, 0);