Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meeting-note: support empty headline prefix #235

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions meeting-note/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"identifier": "meeting-note",
"script": "meeting-note.qml",
"authors": ["@pbek", "@sanderboom", "@wiktor2200"],
"version": "1.4.1",
"version": "1.4.2",
"minAppVersion": "20.4.16",
"description" : "This script creates a menu item and a button to create or jump to the current date's meeting note."
"description": "This script creates a menu item and a button to create or jump to the current date's meeting note."
}
7 changes: 5 additions & 2 deletions meeting-note/meeting-note.qml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ QtObject {
"Date string", "Please enter the date string", dateString);
}

var headline = headlinePrefix + " " + dateString;
var headline = dateString
if (headlinePrefix != '') {
headline = headlinePrefix + " " + headline;
}

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

// Reload note list
mainWindow.buildNotesIndexAndLoadNoteDirectoryList(false, true);

// Reload window title
mainWindow.reloadCurrentNoteByNoteId();
}
Expand Down
Loading