From 0867e968bed1f4f20b402b6d8bfb37184b54ce5f Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Sat, 5 May 2018 10:55:01 +0200 Subject: [PATCH] added message box --- unique-note-id/unique-note-id.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/unique-note-id/unique-note-id.qml b/unique-note-id/unique-note-id.qml index ad9b758..797a2c2 100644 --- a/unique-note-id/unique-note-id.qml +++ b/unique-note-id/unique-note-id.qml @@ -35,10 +35,12 @@ Script { } var noteText = script.currentNote().noteText; - noteText += "\nid:[" + uniqueId + "]"; - + noteText += "\nid:[" + uniqueId + "]\n"; + script.noteTextEditSelectAll(); script.noteTextEditWrite(noteText); + + script.informationMessageBox("The unique id of your note:
" + uniqueId + "", "Unique note id"); break; case "jumpById": var uniqueId = script.inputDialogGetText("Unique id", "Please enter the id of the note");