feat(osd): split custom text OSD IPC command to support optional icon

This commit is contained in:
loner
2025-12-15 10:21:21 +08:00
parent 51b8829fc4
commit 90e04d903a
+7 -2
View File
@@ -380,8 +380,13 @@ Item {
IpcHandler {
target: "osd"
function showText(text: string, icon: string) {
OSDService.showCustomText(text, icon || "");
function showText(text: string) {
OSDService.showCustomText(text, "");
}
function showTextWithIcon(text: string, icon: string) {
OSDService.showCustomText(text, icon);
}
}