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

Desktop: Fixed: The side bar was being refreshed too frequently. Fixed: Order of notebooks with sub-notebooks was sometimes incorrect when sorting by last updated time.

This commit is contained in:
Laurent Cozic
2019-03-10 21:16:05 +00:00
parent 23e6e6e69d
commit 68fbe8125e
3 changed files with 33 additions and 2 deletions

View File

@ -134,7 +134,12 @@ class Folder extends BaseItem {
const parent = findFolderParent(folderId);
if (!parent) return;
folderIdToTime[parent.id] = folderIdToTime[folderId];
if (folderIdToTime[parent.id] && folderIdToTime[parent.id] >= folderIdToTime[folderId]) {
// Don't change so that parent has the same time as the last updated child
} else {
folderIdToTime[parent.id] = folderIdToTime[folderId];
}
applyChildTimeToParent(parent.id);
}