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

Electron: Allow focusing either title or body when creating a new note or to-odo

This commit is contained in:
Laurent Cozic
2018-01-30 21:49:22 +00:00
parent 5b6019805c
commit 9b8f520b9f
3 changed files with 24 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ shared.saveNoteButton_press = async function(comp) {
if (isNew) {
Note.updateGeolocation(note.id).then((geoNote) => {
const stateNote = comp.state.note;
if (!stateNote || !geoNote) return;
if (stateNote.id !== geoNote.id) return; // Another note has been loaded while geoloc was being retrieved
// Geo-location for this note has been saved to the database however the properties