File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 66 `Note 2025-04-18 11h54s09` to be visually more pleasing and containing no `.`
77 characters (for [#3259](https://github.com/pbek/QOwnNotes/issues/3259))
88 - The text `Note` will now also be translated
9+ - When a new note is created, now [handleNoteNameHook](https://www.qownnotes.org/scripting/hooks.html#handlenewnoteheadlinehook)
10+ is also applied (for [#3260](https://github.com/pbek/QOwnNotes/issues/3260))
911
1012## 25.4.3
1113
Original file line number Diff line number Diff line change @@ -6039,6 +6039,15 @@ void MainWindow::jumpToNoteOrCreateNew(bool disableLoadNoteDirectoryList) {
60396039 : tr (" Current note could not be stored to disk" ),
60406040 noteWasStored ? QStringLiteral (" 💾" ) : QStringLiteral (" ❌" ), 3000 );
60416041
6042+ // Check if a name was set in a script
6043+ // We need to do that in the end or the changed name will leak into the note filename
6044+ const QString hookName = ScriptingService::instance ()->callHandleNoteNameHook (¬e);
6045+
6046+ if (!hookName.isEmpty ()) {
6047+ note.setName (hookName);
6048+ note.store ();
6049+ }
6050+
60426051 {
60436052 const QSignalBlocker blocker2 (ui->noteTreeWidget );
60446053 Q_UNUSED (blocker2)
You can’t perform that action at this time.
0 commit comments