Skip to content

Commit e541b03

Browse files
fix(toolbar): correct confirm button tooltip when launching record from plugin
- Add missing changeShotToolFunc signal in setRecordLaunchMode - Fix missing (Enter) in Chinese tooltip translations (zh_CN, zh_HK, zh_TW) This ensures the confirm button shows "OK (Enter)" instead of "Copy to clipboard (Enter)" when recording is launched via plugin or keyboard shortcut (Ctrl+Alt+R). bug: https://pms.uniontech.com/bug-view-359847.html
1 parent 4f4bdce commit e541b03

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

src/main_window.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,10 @@ void MainWindow::initSaveShortcut()
12761276
} else {
12771277
saveScreenShotToClipboardOnly();
12781278
}
1279+
} else if (status::record == m_functionType) {
1280+
// 录屏模式下启动倒计时
1281+
qCDebug(dsrApp) << "shortcut : returnSC (key: enter) in record mode";
1282+
confirm();
12791283
}
12801284
});
12811285
// 截图模式/滚动模式 保存截图 小键盘
@@ -1287,6 +1291,10 @@ void MainWindow::initSaveShortcut()
12871291
} else {
12881292
saveScreenShotToClipboardOnly();
12891293
}
1294+
} else if (status::record == m_functionType) {
1295+
// 录屏模式下启动倒计时
1296+
qCDebug(dsrApp) << "shortcut : enterSC (key: enter) in record mode";
1297+
confirm();
12901298
}
12911299
if (status::record == m_functionType && Utils::isWaylandMode)
12921300
m_showButtons->showContentButtons(KEY_ENTER);

src/widgets/subtoolwidget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,6 +2036,7 @@ void SubToolWidget::setRecordLaunchMode(const unsigned int funType)
20362036
if (funType == MainWindow::record) {
20372037
//setCurrentWidget(m_recordSubTool);
20382038
switchContent("record");
2039+
emit changeShotToolFunc("record");
20392040
} else if (funType == MainWindow::ocr) {
20402041
m_ocrButton->click();
20412042
} else if (funType == MainWindow::scrollshot) {

translations/deepin-screen-recorder_zh_CN.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ or press the shortcut again to stop recording</source>
5252
</message>
5353
<message>
5454
<source>Copy to clipboard (Enter)</source>
55-
<translation>复制到剪贴板</translation>
55+
<translation>复制到剪贴板 Enter</translation>
5656
</message>
5757
</context>
5858
<context>
@@ -767,7 +767,7 @@ Hold down Shift to draw squares or circles.</source>
767767
</message>
768768
<message>
769769
<source>Copy to clipboard (Enter)</source>
770-
<translation>复制到剪贴板</translation>
770+
<translation>复制到剪贴板 Enter</translation>
771771
</message>
772772
<message>
773773
<source>OK (Enter)</source>

translations/deepin-screen-recorder_zh_TW.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ or press the shortcut again to stop recording</source>
5252
</message>
5353
<message>
5454
<source>Copy to clipboard (Enter)</source>
55-
<translation>複製到剪貼板</translation>
55+
<translation>複製到剪貼板 Enter</translation>
5656
</message>
5757
</context>
5858
<context>
@@ -767,7 +767,7 @@ Hold down Shift to draw squares or circles.</source>
767767
</message>
768768
<message>
769769
<source>Copy to clipboard (Enter)</source>
770-
<translation>複製到剪貼板</translation>
770+
<translation>複製到剪貼板 Enter</translation>
771771
</message>
772772
<message>
773773
<source>OK (Enter)</source>

0 commit comments

Comments
 (0)