Skip to content

Commit 568fa63

Browse files
shuaijiedeepin-bot[bot]
authored andcommitted
fix: camera显示不可用
显示camera不可用 Log: 修改显示可用 Bug: https://pms.uniontech.com/bug-view-255489.html
1 parent 66f0e69 commit 568fa63

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

deepin-devicemanager/src/DeviceManager/DeviceImage.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "DeviceImage.h"
77
#include "DeviceManager.h"
88
#include "DBusEnableInterface.h"
9+
#include "DBusInterface.h"
910

1011
DeviceImage::DeviceImage()
1112
: DeviceBaseInfo()
@@ -137,6 +138,8 @@ EnableDeviceStatus DeviceImage::setEnable(bool e)
137138
bool res = DBusEnableInterface::getInstance()->enable("camera", m_Name, m_SysPath, m_UniqueID, e, m_Driver);
138139
if (res) {
139140
m_Enable = e;
141+
if(e)
142+
DBusInterface::getInstance()->refreshInfo();
140143
}
141144
// 设置设备状态
142145
return res ? EDS_Success : EDS_Faild;

0 commit comments

Comments
 (0)