diff --git a/src/kylin-dbus-interface.cpp b/src/kylin-dbus-interface.cpp index c0688c1b..0a4605dc 100644 --- a/src/kylin-dbus-interface.cpp +++ b/src/kylin-dbus-interface.cpp @@ -1180,7 +1180,7 @@ QString KylinDBus::getActiveWifiUuid() return ssid; } -//获取已连接wifi的uuid +//获取已连接wifi的信息 int KylinDBus::getActiveWifiSignal() { int wifistrength = 0; diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a822ea6f..d9f6a792 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -123,6 +123,9 @@ MainWindow::MainWindow(QWidget *parent) : hasWifiConnected = false; numberForWifiScan = 0; + + //检查有线网络的个数是否为0,如果是0,则新建一个有线网络 + checkIfWiredNetExist(); } MainWindow::~MainWindow()