Fix bug can not create wired network auto when launch OS if there is no wired already

This commit is contained in:
chenlelin 2021-04-12 20:38:40 +08:00
parent aa83bc0886
commit 5e928435bd
2 changed files with 4 additions and 1 deletions

View File

@ -1180,7 +1180,7 @@ QString KylinDBus::getActiveWifiUuid()
return ssid;
}
//获取已连接wifi的uuid
//获取已连接wifi的信息
int KylinDBus::getActiveWifiSignal()
{
int wifistrength = 0;

View File

@ -123,6 +123,9 @@ MainWindow::MainWindow(QWidget *parent) :
hasWifiConnected = false;
numberForWifiScan = 0;
//检查有线网络的个数是否为0,如果是0则新建一个有线网络
checkIfWiredNetExist();
}
MainWindow::~MainWindow()