Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/record_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,10 @@ void RecordProcess::exitRecord(QString newSavePath)
notification.callWithArgumentList(QDBus::AutoDetect, "Notify", arg);
qInfo() << __LINE__ << __func__ << "已弹出通知消息";
}

//保存到剪切板
save2Clipboard(newSavePath);

if (m_recordType == Utils::kGIF) {
QFile::remove(savePath);
}
Expand All @@ -844,8 +848,6 @@ void RecordProcess::exitRecord(QString newSavePath)
qInfo() << __LINE__ << __func__ << "录屏计时图标已退出";
}

//保存到剪切板
save2Clipboard(newSavePath);
qInfo() << __LINE__ << __func__ <<"录屏已退出";
QApplication::quit();
if (Utils::isWaylandMode) {
Expand Down