add lamda

This commit is contained in:
jzxc95 2021-11-03 11:54:21 +08:00
parent 0be90ace26
commit a6d6ebb99a
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ void NetConnect::initComponent() {
ui->openWIifLayout->addWidget(wiredSwitch);
ui->detailLayOut->setContentsMargins(MAIN_LAYOUT_MARGINS);
connect(wiredSwitch, &SwitchButton::disabledClick, this, []() {
connect(wiredSwitch, &SwitchButton::disabledClick, this, [=]() {
showDesktopNotify(tr("No ethernet device avaliable"));
});

View File

@ -178,7 +178,7 @@ void WlanConnect::initComponent() {
ui->openWIifLayout->addWidget(wifiSwtch);
ui->detailLayOut_3->setContentsMargins(MAIN_LAYOUT_MARGINS);
connect(wifiSwtch, &SwitchButton::disabledClick, this, []() {
connect(wifiSwtch, &SwitchButton::disabledClick, this, [=]() {
showDesktopNotify(tr("No wireless network card detected"));
});