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

Electron: Allowing opening and saving resource images

This commit is contained in:
Laurent Cozic
2018-02-07 20:23:17 +00:00
parent f91c52cdf7
commit fc0d227396
4 changed files with 39 additions and 3 deletions

View File

@ -30,7 +30,6 @@ shared.saveNoteButton_press = async function(comp) {
options.fields = BaseModel.diffObjectsFields(comp.state.lastSavedNote, note);
}
const hasAutoTitle = comp.state.newAndNoTitleChangeNoteId || (isNew && !note.title);
if (hasAutoTitle) {
note.title = Note.defaultTitle(note);