浏览代码

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

Armin Schrenk 2 年之前
父节点
当前提交
97c0cb4f5f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/java/org/cryptomator/common/settings/SettingsJsonAdapter.java

+ 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());