fix bug 146541/vpn page

This commit is contained in:
jzxc95 2022-11-01 15:11:38 +08:00
parent 240d154240
commit 977f5f584a
1 changed files with 14 additions and 14 deletions

View File

@ -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<bool> 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<bool> reply = interface.call("get_current_tabletmode");
// if (!reply.isValid()) {
// m_isShowInCenter = true;
// return;
// }
// m_isShowInCenter = reply.value();
}
/**