1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

Electron: Improved the way new note are created, and automatically add a title. Made saving and loading notes more reliable.

This commit is contained in:
Laurent Cozic
2018-01-12 19:58:01 +00:00
parent feeb498a79
commit 1fd1a73fda
6 changed files with 134 additions and 90 deletions

View File

@ -69,8 +69,6 @@ class Note extends BaseItem {
}
static defaultTitle(note) {
if (note.title && note.title.length) return note.title;
if (note.body && note.body.length) {
const lines = note.body.trim().split("\n");
return lines[0].trim().substr(0, 80).trim();