From 5e928435bd2f135a9a7a758e467f183ff5985780 Mon Sep 17 00:00:00 2001 From: chenlelin Date: Mon, 12 Apr 2021 20:38:40 +0800 Subject: [PATCH] Fix bug can not create wired network auto when launch OS if there is no wired already --- src/kylin-dbus-interface.cpp | 2 +- src/mainwindow.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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()