fix release notes

This commit is contained in:
zsviczian
2022-11-15 21:21:09 +01:00
parent d7648d702a
commit 95ca41fcaa
2 changed files with 3 additions and 6 deletions

View File

@@ -255,11 +255,8 @@ export default class ExcalidrawPlugin extends Plugin {
// const patches = new OneOffs(this);
if (this.settings.showReleaseNotes) {
//I am repurposing imageElementNotice, if the value is true, this means the plugin was just newly installed to Obsidian.
const obsidianJustInstalled = this.settings.imageElementNotice;
if(obsidianJustInstalled) {
this.settings.imageElementNotice = false;
await this.saveSettings();
}
const obsidianJustInstalled = this.settings.previousRelease === "0.0.0"
if (isVersionNewerThanOther(PLUGIN_VERSION, this.settings.previousRelease)) {
new ReleaseNotes(
this.app,

View File

@@ -193,7 +193,7 @@ export const DEFAULT_SETTINGS: ExcalidrawSettings = {
mdCSS: "",
scriptEngineSettings: {},
defaultTrayMode: false,
previousRelease: "1.6.13",
previousRelease: "0.0.0",
showReleaseNotes: true,
showNewVersionNotification: true,
mathjaxSourceURL: "https://cdn.jsdelivr.net/npm/mathjax@3.2.1/es5/tex-svg.js"