From 546111f6d68ad2eb57c9ce19e56ddd4a0917752d Mon Sep 17 00:00:00 2001 From: lukeleppan Date: Fri, 13 Nov 2020 22:32:08 +0200 Subject: [PATCH] Bump --- README.md | 14 ++++++++++++++ manifest.json | 2 +- package.json | 2 +- src/main.ts | 2 +- src/settings/settings-tab.ts | 2 +- 5 files changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 40b7bb6..bc1f2fc 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,22 @@ You can also reconnect to discord rich presence via the `Reconnect to Discord` c ### Settings +#### Vault Name Settings + - Toggle whether or not to show **Vault Name** +- Set a custom **Vault Name** to show publicly + +#### File Name Settings + - Toggle whether or not to show **Current File Name** +- Toggle whether or not to show the current file **extension** + +#### Time Settings + +- Toggle Whether or not to use the total time you have been using Obsidian, instead of the time spent editing a single file. + +#### Notice Settings + - Toggle whether or not to show **Connection Notices** ### Issues diff --git a/manifest.json b/manifest.json index f94b152..c0cde53 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-discordrpc", "name": "Discord Rich Presence", - "version": "1.2.0", + "version": "1.3.2", "description": "Update your Discord Status to show your friends what you are working on in Obsidian. With Discord Rich Presence.", "author": "Luke Leppan", "authorUrl": "https://lukeleppan.com", diff --git a/package.json b/package.json index a4bd002..6f63243 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-discordrpc", - "version": "1.2.0", + "version": "1.3.2", "description": "Update your Discord Status to show your friends what you are working on in Obsidian. With Discord Rich Presence.", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index a3b1c16..6e93de9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -69,7 +69,7 @@ export default class ObsidianDiscordRPC extends Plugin { async onFileOpen(file: TFile) { this.currentFile = file; - if (this.getState() == PluginState.connected) { + if (this.getState() === PluginState.connected) { await this.setActivity( this.app.vault.getName(), file.basename, diff --git a/src/settings/settings-tab.ts b/src/settings/settings-tab.ts index d90b592..d4b8d51 100644 --- a/src/settings/settings-tab.ts +++ b/src/settings/settings-tab.ts @@ -100,7 +100,7 @@ export class DiscordRPCSettingsTab extends PluginSettingTab { containerEl.createEl("h3", { text: "Time Settings" }); new Setting(containerEl) - .setName("Use Obsidian Open Time") + .setName("Use Obsidian Total Time") .setDesc( "Enable to use the total time you have been using Obsidian, instead of the time spent editing a single file." )