From 55b97b469ee4257a16a8022db0aaa7a1849ad167 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 13 Aug 2025 19:20:45 +0200 Subject: [PATCH] Fix some qmllint warnings --- src/chatbar/AttachDialog.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chatbar/AttachDialog.qml b/src/chatbar/AttachDialog.qml index e1022b140..75e79bdd2 100644 --- a/src/chatbar/AttachDialog.qml +++ b/src/chatbar/AttachDialog.qml @@ -26,11 +26,11 @@ QQC2.Popup { icon.name: 'mail-attachment' - text: i18n("Choose local file") + text: i18nc("@action:button", "Choose local file") onClicked: { root.close(); - var fileDialog = openFileDialog.createObject(QQC2.Overlay.overlay); + var fileDialog = openFileDialog.createObject(QQC2.Overlay.overlay) as OpenFileDialog; fileDialog.chosen.connect(path => root.chosen(path)); fileDialog.open(); } @@ -42,7 +42,7 @@ QQC2.Popup { Layout.fillHeight: true icon.name: 'insert-image' - text: i18n("Clipboard image") + text: i18nc("@action:button", "Clipboard image") onClicked: { const path = StandardPaths.standardLocations(StandardPaths.CacheLocation)[0] + "/screenshots/" + (new Date()).getTime() + ".png"; if (!Clipboard.saveImage(path)) {