fix bug 143023

This commit is contained in:
jzxc95 2022-10-10 09:48:40 +08:00
parent 311ef6aa13
commit ff5fba7afd
5 changed files with 14 additions and 2 deletions

View File

@ -369,7 +369,6 @@ void NetDetail::initUI()
cancelBtn->setText(tr("Cancel"));
forgetBtn = new QPushButton(this);
forgetBtn->setText(tr("Forget this network"));
QVBoxLayout *centerlayout = new QVBoxLayout(centerWidget);
centerlayout->setContentsMargins(CENTER_LAYOUT_MARGINS);
@ -415,7 +414,12 @@ void NetDetail::initComponent()
});
connect(confimBtn, SIGNAL(clicked()), this, SLOT(on_btnConfirm_clicked()));
if (isWlan && !m_uuid.isEmpty()) {
if (!m_uuid.isEmpty()) {
if (isWlan) {
forgetBtn->setText(tr("Forget this network"));
} else {
forgetBtn->setText(tr("Delete this network"));
}
forgetBtn->show();
connect(forgetBtn, SIGNAL(clicked()), this, SLOT(on_btnForget_clicked()));
} else {

Binary file not shown.

View File

@ -852,6 +852,10 @@
<source>Forget this network</source>
<translation></translation>
</message>
<message>
<source>Delete this network</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="403"/>
<source>Add Lan Connect</source>

Binary file not shown.

View File

@ -851,6 +851,10 @@
<location filename="../src/frontend/netdetails/netdetail.cpp" line="372"/>
<source>Forget this network</source>
<translation></translation>
</message>
<message>
<source>Delete this network</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="403"/>