From 977f5f584aae25b14892ea31f7dcc242993bd4cd Mon Sep 17 00:00:00 2001 From: jzxc95 <907297917@qq.com> Date: Tue, 1 Nov 2022 15:11:38 +0800 Subject: [PATCH] fix bug 146541/vpn page --- src/frontend/vpnmainwindow.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/frontend/vpnmainwindow.cpp b/src/frontend/vpnmainwindow.cpp index 3a22b754..4dbba861 100644 --- a/src/frontend/vpnmainwindow.cpp +++ b/src/frontend/vpnmainwindow.cpp @@ -450,20 +450,20 @@ void vpnMainWindow::setCentralWidgetType(IconActiveType iconStatus) void vpnMainWindow::getTabletMode() { - QDBusInterface interface(QString("com.kylin.statusmanager.interface"), - QString("/"), - QString("com.kylin.statusmanager.interface"), - QDBusConnection::sessionBus()); - if(!interface.isValid()) { - m_isShowInCenter = true; - return; - } - QDBusReply reply = interface.call("get_current_tabletmode"); - if (!reply.isValid()) { - m_isShowInCenter = true; - return; - } - m_isShowInCenter = reply.value(); +// QDBusInterface interface(QString("com.kylin.statusmanager.interface"), +// QString("/"), +// QString("com.kylin.statusmanager.interface"), +// QDBusConnection::sessionBus()); +// if(!interface.isValid()) { +// m_isShowInCenter = true; +// return; +// } +// QDBusReply reply = interface.call("get_current_tabletmode"); +// if (!reply.isValid()) { +// m_isShowInCenter = true; +// return; +// } +// m_isShowInCenter = reply.value(); } /**