Skip to content

Commit a35a4c7

Browse files
authored
Fix undefined warning in using toasts (#382)
1 parent e197e0e commit a35a4c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Main.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,22 +298,22 @@ ApplicationWindow {
298298
onTriggered: {
299299
if (message != "") {
300300
appmodel.copyToClipboard(message)
301-
toast.show(qsTr("Copied message to clipboard"))
301+
toast.show(qsTr("Copied message to clipboard"), 3000)
302302
}
303303
}
304304
}
305305
MenuItem {
306306
text: qsTr("Copy report as CSV")
307307
onTriggered: {
308308
appmodel.copyValidationReportCsv()
309-
toast.show(qsTr("Copied all results as a CSV"))
309+
toast.show(qsTr("Copied all results as a CSV"), 3000)
310310
}
311311
}
312312
MenuItem {
313313
text: qsTr("Copy report as Markdown")
314314
onTriggered: {
315315
appmodel.copyValidationReportMarkdown();
316-
toast.show(qsTr("Copied as Markdown (works well in Zulip)"))
316+
toast.show(qsTr("Copied as Markdown (works well in Zulip)"), 3000)
317317
}
318318
}
319319
}

0 commit comments

Comments
 (0)