Skip to content

Commit

Permalink
Fix item view (#20)
Browse files Browse the repository at this point in the history
* fix: resolve item view click not increasing view count

* chore: bump version
  • Loading branch information
decaf-dev authored May 25, 2024
1 parent b262402 commit 1cb091a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "view-count",
"name": "View Count",
"version": "2.0.1",
"version": "2.0.2",
"minAppVersion": "1.4.0",
"description": "Tracks view count for each vault file.",
"author": "Trey Wallis",
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-view-count",
"version": "2.0.1",
"version": "2.0.2",
"description": "Tracks view count for each vault file",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/obsidian/view-count-item-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class ViewCountItemView extends ItemView {
const type = (this.app as any).viewRegistry.getTypeByExtension(file.extension);
this.app.workspace.getLeaf(false)?.setViewState({
type,
active: false,
active: true,
state: {
file: entry.path,
},
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"1.2.1": "1.4.0",
"1.2.2": "1.4.0",
"2.0.0": "1.4.0",
"2.0.1": "1.4.0"
"2.0.1": "1.4.0",
"2.0.2": "1.4.0"
}

0 comments on commit 1cb091a

Please sign in to comment.