仅弹出一个加入WiFi界面
This commit is contained in:
parent
04c008168b
commit
c30b0f9bbf
|
@ -19,7 +19,6 @@
|
|||
*/
|
||||
#include "wlanpage.h"
|
||||
#include "kywirelessnetitem.h"
|
||||
#include "netdetails/joinhiddenwifipage.h"
|
||||
#include <QEvent>
|
||||
#include <QDateTime>
|
||||
#include <QDebug>
|
||||
|
@ -1030,9 +1029,21 @@ void WlanPage::onHiddenWlanClicked()
|
|||
// qDebug() << "[wlanPage] AddHideWifi Clicked! " << Q_FUNC_INFO << __LINE__ ;
|
||||
// NetDetail *netDetail = new NetDetail(m_currentDevice, "", "", false, true, true);
|
||||
// netDetail->show();
|
||||
JoinHiddenWiFiPage *hiddenWiFi =new JoinHiddenWiFiPage(m_currentDevice);
|
||||
connect(hiddenWiFi, &JoinHiddenWiFiPage::showWlanList, this, &WlanPage::showMainWindow);
|
||||
hiddenWiFi->show();
|
||||
if(m_hiddenWiFi != nullptr){
|
||||
m_hiddenWiFi->activateWindow();
|
||||
return;
|
||||
}
|
||||
|
||||
m_hiddenWiFi =new JoinHiddenWiFiPage(m_currentDevice);
|
||||
|
||||
connect(m_hiddenWiFi, &JoinHiddenWiFiPage::showWlanList, this, &WlanPage::showMainWindow);
|
||||
connect(m_hiddenWiFi, &JoinHiddenWiFiPage::destroyed, [&](){
|
||||
if (m_hiddenWiFi != nullptr) {
|
||||
m_hiddenWiFi = nullptr;
|
||||
}
|
||||
});
|
||||
|
||||
m_hiddenWiFi->show();
|
||||
}
|
||||
|
||||
void WlanPage::showControlCenter()
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include <QProcess>
|
||||
#include "kylinactiveconnectresource.h"
|
||||
#include "kywirelessnetresource.h"
|
||||
#include "netdetails/joinhiddenwifipage.h"
|
||||
|
||||
//#define SCROLLAREA_HEIGHT 150
|
||||
#define MORE_TEXT_MARGINS 16,0,0,0
|
||||
|
@ -201,6 +202,8 @@ private:
|
|||
|
||||
QTimer *m_scanTimer = nullptr;
|
||||
QTimer *m_refreshIconTimer = nullptr;
|
||||
|
||||
JoinHiddenWiFiPage *m_hiddenWiFi = nullptr;
|
||||
};
|
||||
|
||||
#endif // WLANPAGE_H
|
||||
|
|
Loading…
Reference in New Issue