Fix Android note creation delay: throttle file watcher IPC (#191)

This commit is contained in:
Yuri Karamian
2026-06-30 19:48:19 +02:00
parent 015726f896
commit 13fd70f944
4 changed files with 47 additions and 46 deletions
+6 -2
View File
@@ -442,8 +442,12 @@
const entry = await createNote(nbRelative, 'Untitled');
if ($sortMode === 'custom') appendManualNoteOrder(entry.path);
noteCache.clear();
await refresh();
await selectNote(entry);
$notes = [entry, ...$notes];
onBeforeNoteSwitch();
$activeNote = { path: entry.path, meta: entry.meta, content: '\n', raw: '' };
$activeNotePath = entry.path;
$editorDirty = false;
onNoteSelected(entry.path, '\n');
onNoteCreated();
} catch (e) {
console.error('Failed to create note:', e);