diff --git a/debian/changelog b/debian/changelog index dec4e344..16e0a091 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,13 @@ +kylin-nm (3.20.1.6-ok8) v101; urgency=medium + + * BUG号: + -#143364 【网络设置】任务栏点击网络图标,网络设置窗口显示在屏幕中央 + * 需求号: + * 其他改动:无 + * 影响域:显示位置 + + -- zhaoshixu Fri, 21 Oct 2022 16:20:36 +0800 + kylin-nm (3.20.1.6-ok7) v101; urgency=medium * BUG号:无 diff --git a/src/frontend/mainwindow.cpp b/src/frontend/mainwindow.cpp index 86c552d8..32964762 100644 --- a/src/frontend/mainwindow.cpp +++ b/src/frontend/mainwindow.cpp @@ -358,7 +358,7 @@ void MainWindow::initDbusConnnect() connect(m_wlanWidget, &WlanPage::connectivityChanged, this, &MainWindow::onConnectivityChanged); //模式切换 - QDBusConnection::sessionBus().connect(QString("com.kylin.statusmanager.interfacer"), + QDBusConnection::sessionBus().connect(QString("com.kylin.statusmanager.interface"), QString("/"), QString("com.kylin.statusmanager.interface"), QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool))); @@ -531,14 +531,9 @@ void MainWindow::setCentralWidgetType(IconActiveType iconStatus) void MainWindow::getTabletMode() { - QDBusConnection::sessionBus().connect(QString("com.kylin.statusmanager.interfacer"), - QString("/"), - QString("qt5-ukui-platformtheme"), - QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool))); - - QDBusInterface interface(QString("com.kylin.statusmanager.interfacer"), + QDBusInterface interface(QString("com.kylin.statusmanager.interface"), QString("/"), - QString("qt5-ukui-platformtheme"), + QString("com.kylin.statusmanager.interface"), QDBusConnection::sessionBus()); if(!interface.isValid()) { m_isShowInCenter = true; diff --git a/src/frontend/vpnmainwindow.cpp b/src/frontend/vpnmainwindow.cpp index 8290fc0a..3a22b754 100644 --- a/src/frontend/vpnmainwindow.cpp +++ b/src/frontend/vpnmainwindow.cpp @@ -278,7 +278,7 @@ void vpnMainWindow::initDbusConnnect() // connect(m_vpnPage, &LanPage::lanConnectChanged, this, &MainWindow::onLanConnectStatusToChangeTrayIcon); // //模式切换 -// QDBusConnection::sessionBus().connect(QString("com.kylin.statusmanager.interfacer"), +// QDBusConnection::sessionBus().connect(QString("com.kylin.statusmanager.interface"), // QString("/"), // QString("com.kylin.statusmanager.interface"), // QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool))); @@ -450,14 +450,9 @@ void vpnMainWindow::setCentralWidgetType(IconActiveType iconStatus) void vpnMainWindow::getTabletMode() { - QDBusConnection::sessionBus().connect(QString("com.kylin.statusmanager.interfacer"), - QString("/"), - QString("qt5-ukui-platformtheme"), - QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool))); - - QDBusInterface interface(QString("com.kylin.statusmanager.interfacer"), + QDBusInterface interface(QString("com.kylin.statusmanager.interface"), QString("/"), - QString("qt5-ukui-platformtheme"), + QString("com.kylin.statusmanager.interface"), QDBusConnection::sessionBus()); if(!interface.isValid()) { m_isShowInCenter = true;