Browse Source

add to settings.json the app version written to it last

Armin Schrenk 2 years ago
parent
commit
97c0cb4f5f

+ 1 - 0
src/main/java/org/cryptomator/common/settings/SettingsJsonAdapter.java

@@ -37,6 +37,7 @@ public class SettingsJsonAdapter extends TypeAdapter<Settings> {
 	@Override
 	public void write(JsonWriter out, Settings value) throws IOException {
 		out.beginObject();
+		out.name("lastWrittenByVersion").value(env.getAppVersion()+env.getBuildNumber().map("-"::concat).orElse(""));
 		out.name("directories");
 		writeVaultSettingsArray(out, value.getDirectories());
 		out.name("askedForUpdateCheck").value(value.askedForUpdateCheck().get());