From 009bd3e059124ee366bf4729a9df7c752a8c187e Mon Sep 17 00:00:00 2001 From: ruidajo Date: Fri, 4 Mar 2022 11:10:16 -0500 Subject: [PATCH] Improving resynchronize. --- repository/TiddlyWiki/TiddlyWiki.class.st | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/repository/TiddlyWiki/TiddlyWiki.class.st b/repository/TiddlyWiki/TiddlyWiki.class.st index 5572bd2..75d3f33 100644 --- a/repository/TiddlyWiki/TiddlyWiki.class.st +++ b/repository/TiddlyWiki/TiddlyWiki.class.st @@ -447,11 +447,17 @@ TiddlyWiki >> repository [ TiddlyWiki >> resynchronize [ | repository | + self + exportJSONFile; + importJSONFile. repository := self repository. repository update. self exportContentTiddlers. repository addRecentChangesFromWiki: self. - ^ self rebuildTiddlersJSON + ^ Dictionary new + at: 'status' put: repository status; + at: 'file' put: self rebuildTiddlersJSON; + yourself. ] { #category : #accessing }