Skip to content

Commit 65f1be4

Browse files
rasa-silvaRicardo Silva
andauthored
meeting-note: support empty headline prefix (#235)
Co-authored-by: Ricardo Silva <ricardo.silva@digitalhub.man>
1 parent ba600ab commit 65f1be4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

meeting-note/info.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"identifier": "meeting-note",
44
"script": "meeting-note.qml",
55
"authors": ["@pbek", "@sanderboom", "@wiktor2200"],
6-
"version": "1.4.1",
6+
"version": "1.4.2",
77
"minAppVersion": "20.4.16",
8-
"description" : "This script creates a menu item and a button to create or jump to the current date's meeting note."
8+
"description": "This script creates a menu item and a button to create or jump to the current date's meeting note."
99
}

meeting-note/meeting-note.qml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ QtObject {
9393
"Date string", "Please enter the date string", dateString);
9494
}
9595

96-
var headline = headlinePrefix + " " + dateString;
96+
var headline = dateString
97+
if (headlinePrefix != '') {
98+
headline = headlinePrefix + " " + headline;
99+
}
97100

98101
if (timeInNoteName) {
99102
headline = headline + "T" + ("0" + m.getHours()).slice(-2) + "." + ("0" + m.getMinutes()).slice(-2);
@@ -153,7 +156,7 @@ QtObject {
153156

154157
// Reload note list
155158
mainWindow.buildNotesIndexAndLoadNoteDirectoryList(false, true);
156-
159+
157160
// Reload window title
158161
mainWindow.reloadCurrentNoteByNoteId();
159162
}

0 commit comments

Comments
 (0)