Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeleppan committed Nov 13, 2020
1 parent 19ce1ac commit 546111f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/settings/settings-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down

0 comments on commit 546111f

Please # to comment.