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() void vpnMainWindow::getTabletMode()
{ {
QDBusInterface interface(QString("com.kylin.statusmanager.interface"), // QDBusInterface interface(QString("com.kylin.statusmanager.interface"),
QString("/"), // QString("/"),
QString("com.kylin.statusmanager.interface"), // QString("com.kylin.statusmanager.interface"),
QDBusConnection::sessionBus()); // QDBusConnection::sessionBus());
if(!interface.isValid()) { // if(!interface.isValid()) {
m_isShowInCenter = true; // m_isShowInCenter = true;
return; // return;
} // }
QDBusReply<bool> reply = interface.call("get_current_tabletmode"); // QDBusReply<bool> reply = interface.call("get_current_tabletmode");
if (!reply.isValid()) { // if (!reply.isValid()) {
m_isShowInCenter = true; // m_isShowInCenter = true;
return; // return;
} // }
m_isShowInCenter = reply.value(); // m_isShowInCenter = reply.value();
} }
/** /**