Skip to content

Commit

Permalink
fix: camera显示不可用
Browse files Browse the repository at this point in the history
 显示camera不可用

Log:  修改显示可用

Bug: https://pms.uniontech.com/bug-view-255489.html
  • Loading branch information
shuaijie authored and deepin-bot[bot] committed May 21, 2024
1 parent 66f0e69 commit 568fa63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deepin-devicemanager/src/DeviceManager/DeviceImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "DeviceImage.h"
#include "DeviceManager.h"
#include "DBusEnableInterface.h"
#include "DBusInterface.h"

DeviceImage::DeviceImage()
: DeviceBaseInfo()
Expand Down Expand Up @@ -137,6 +138,8 @@ EnableDeviceStatus DeviceImage::setEnable(bool e)
bool res = DBusEnableInterface::getInstance()->enable("camera", m_Name, m_SysPath, m_UniqueID, e, m_Driver);
if (res) {
m_Enable = e;
if(e)
DBusInterface::getInstance()->refreshInfo();
}
// 设置设备状态
return res ? EDS_Success : EDS_Faild;
Expand Down

0 comments on commit 568fa63

Please sign in to comment.