feat: 发送到桌面成功播放音频

添加发送到桌面的音频

Log:
Influence:
Task: https://pms.uniontech.com/task-view-229565.html
Change-Id: Iaaac27fff53d45dacca407a4599a7a428ded772d
This commit is contained in:
songwentao
2022-12-20 11:03:54 +08:00
parent 7b22381002
commit be1f2950a0
3 changed files with 8 additions and 6 deletions

View File

@ -40,13 +40,14 @@
#include <QEventLoop>
#include <DSysInfo>
#include <DDesktopServices>
#include <regex>
#include <stdlib.h>
#include <thread>
DCORE_USE_NAMESPACE
DCORE_USE_NAMESPACE
DWIDGET_USE_NAMESPACE
#define SETTING LauncherSettings::instance()
@ -275,11 +276,8 @@ bool Launcher::requestSendToDesktop(QString appId)
if (!dinfo.getKeyFile()->saveToFile(filePath.toStdString()))
return false;
std::thread thread([]() {
// TODO 播放系统音效
});
thread.detach();
// 播放音频
DDesktopServices::playSystemSoundEffect(DDesktopServices::SSE_SendFileComplete);
return true;
}