Skip to content

Commit

Permalink
core: change the clicked signal argument to see if the open btn is fi…
Browse files Browse the repository at this point in the history
…xed.

Signed-off-by: AlexandraTrifan <[email protected]>
  • Loading branch information
AlexandraTrifan committed Dec 20, 2024
1 parent 0f0d06b commit 41ae6bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/scopypreferencespage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ QWidget *ScopyPreferencesPage::buildSaveSessionPreference()
QPushButton *navigateBtn = new QPushButton("Open", this);
Style::setStyle(navigateBtn, style::properties::button::borderButton);
navigateBtn->setMaximumWidth(Style::getDimension(json::global::unit_5));
connect(navigateBtn, &QPushButton::clicked, this,
[=]() { QDesktopServices::openUrl(scopy::config::settingsFolderPath()); });
connect(navigateBtn, &QPushButton::clicked, []() {
QDesktopServices::openUrl(scopy::config::settingsFolderPath());
});
lay->addWidget(navigateBtn);
return w;
}
Expand Down

0 comments on commit 41ae6bf

Please sign in to comment.