fix 143364

This commit is contained in:
jzxc95 2022-10-21 16:32:14 +08:00
parent 2dfe5479b0
commit cd19f858b7
3 changed files with 16 additions and 16 deletions

10
debian/changelog vendored
View File

@ -1,3 +1,13 @@
kylin-nm (3.20.1.6-ok8) v101; urgency=medium
* BUG号
-#143364 【网络设置】任务栏点击网络图标,网络设置窗口显示在屏幕中央
* 需求号:
* 其他改动:无
* 影响域:显示位置
-- zhaoshixu <zhaoshixu@kylinos.cn> Fri, 21 Oct 2022 16:20:36 +0800
kylin-nm (3.20.1.6-ok7) v101; urgency=medium kylin-nm (3.20.1.6-ok7) v101; urgency=medium
* BUG号 * BUG号

View File

@ -358,7 +358,7 @@ void MainWindow::initDbusConnnect()
connect(m_wlanWidget, &WlanPage::connectivityChanged, this, &MainWindow::onConnectivityChanged); 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("/"),
QString("com.kylin.statusmanager.interface"), QString("com.kylin.statusmanager.interface"),
QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool))); QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool)));
@ -531,14 +531,9 @@ void MainWindow::setCentralWidgetType(IconActiveType iconStatus)
void MainWindow::getTabletMode() void MainWindow::getTabletMode()
{ {
QDBusConnection::sessionBus().connect(QString("com.kylin.statusmanager.interfacer"), QDBusInterface interface(QString("com.kylin.statusmanager.interface"),
QString("/"),
QString("qt5-ukui-platformtheme"),
QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool)));
QDBusInterface interface(QString("com.kylin.statusmanager.interfacer"),
QString("/"), QString("/"),
QString("qt5-ukui-platformtheme"), QString("com.kylin.statusmanager.interface"),
QDBusConnection::sessionBus()); QDBusConnection::sessionBus());
if(!interface.isValid()) { if(!interface.isValid()) {
m_isShowInCenter = true; m_isShowInCenter = true;

View File

@ -278,7 +278,7 @@ void vpnMainWindow::initDbusConnnect()
// connect(m_vpnPage, &LanPage::lanConnectChanged, this, &MainWindow::onLanConnectStatusToChangeTrayIcon); // 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("/"),
// QString("com.kylin.statusmanager.interface"), // QString("com.kylin.statusmanager.interface"),
// QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool))); // QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool)));
@ -450,14 +450,9 @@ void vpnMainWindow::setCentralWidgetType(IconActiveType iconStatus)
void vpnMainWindow::getTabletMode() void vpnMainWindow::getTabletMode()
{ {
QDBusConnection::sessionBus().connect(QString("com.kylin.statusmanager.interfacer"), QDBusInterface interface(QString("com.kylin.statusmanager.interface"),
QString("/"),
QString("qt5-ukui-platformtheme"),
QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool)));
QDBusInterface interface(QString("com.kylin.statusmanager.interfacer"),
QString("/"), QString("/"),
QString("qt5-ukui-platformtheme"), QString("com.kylin.statusmanager.interface"),
QDBusConnection::sessionBus()); QDBusConnection::sessionBus());
if(!interface.isValid()) { if(!interface.isValid()) {
m_isShowInCenter = true; m_isShowInCenter = true;