browserWindow.fileWatcher.fileChanged.connect(this, "externalFileEdited(String)");
browserWindow.noteSignal.tagsChanged.connect(this, "updateNoteTags(String, List)");
browserWindow.noteSignal.tagsChanged.connect(this, "updateListTags(String, List)");
- browserWindow.noteSignal.noteChanged.connect(this, "invalidateNoteCache(String, String)");
+ //browserWindow.noteSignal.noteChanged.connect(this, "invalidateNoteCache(String, String)");
browserWindow.noteSignal.noteChanged.connect(this, "setNoteDirty()");
browserWindow.noteSignal.titleChanged.connect(listManager, "updateNoteTitle(String, String)");
browserWindow.noteSignal.notebookChanged.connect(this, "updateNoteNotebook(String, String)");
logger.log(logger.EXTREME, "updating list manager");
listManager.updateNoteContent(currentNoteGuid, browserWindow.getContent());
+ noteCache.put(currentNoteGuid, browserWindow.getContent());
logger.log(logger.EXTREME, "Updating title");
listManager.updateNoteTitle(currentNoteGuid, browserWindow.getTitle());
updateListDateChanged();
private void invalidateNoteCache(String guid, String content) {
String v = noteCache.remove(guid);
if (content != null) {
- v = noteCache.put(guid, content);
+ //noteCache.put(guid, content);
}
}
// Signal received that a note guid has changed
int endPos =html.indexOf(">",i+1);
String input = html.substring(i,endPos);
if (input.indexOf("value=\"true\"") > 0)
- input = input.replace("unchecked=\"\"", "checked=\"\"");
+ input = input.replace(" unchecked=\"\"", " checked=\"\"");
else
- input = input.replace("checked=\"\"", "unchecked=\"\"");
+ input = input.replace(" checked=\"\"", " unchecked=\"\"");
html.replace(i, endPos, input);
i++;
}