feat: 发送到桌面成功播放音频
添加发送到桌面的音频 Log: Influence: Task: https://pms.uniontech.com/task-view-229565.html Change-Id: Iaaac27fff53d45dacca407a4599a7a428ded772d
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user