mirror of
https://github.com/pbek/QOwnNotes.git
synced 2025-06-29 05:19:55 +00:00
17 lines
377 B
QML
17 lines
377 B
QML
|
import QtQml 2.0
|
||
|
import com.qownnotes.noteapi 1.0
|
||
|
|
||
|
/**
|
||
|
* This script is an example how to get a notification when a note was opened
|
||
|
*/
|
||
|
QtObject {
|
||
|
/**
|
||
|
* This function is called after a note was opened
|
||
|
*
|
||
|
* @param {NoteApi} note - the note object that was opened
|
||
|
*/
|
||
|
function noteOpenedHook(note) {
|
||
|
script.log(note.fullNoteFilePath);
|
||
|
}
|
||
|
}
|