Skip to content

Commit

Permalink
Fix for backward incompatible change in 1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Canna71 committed Feb 15, 2024
1 parent 63f95dd commit 1f51085
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "sets",
"name": "Sets",
"version": "1.0.13",
"version": "1.0.14",
"minAppVersion": "1.4.4",
"description": "Create, edit and search sets of notes like Notion or AnyType DBs",
"author": "Gabriele Cannata",
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": "sets",
"version": "1.0.13",
"version": "1.0.14",
"description": "A plugin for Obsidian.md that allows you to create, edit and search sets of notes like Notion or AnyType DBs",
"main": "main.js",
"scripts": {
Expand Down
7 changes: 6 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,12 @@ export default class SetsPlugin extends Plugin {
registerNewTypes() {
registerPasswordPropertyType(this.app);
// registerLinkPropertyType(this.app);
this.app.metadataTypeManager.savePropertyInfo();
if(this.app.metadataTypeManager.savePropertyInfo) {
this.app.metadataTypeManager.savePropertyInfo();
}
if(this.app.metadataTypeManager.updatePropertyInfoCache) {
this.app.metadataTypeManager.updatePropertyInfoCache();
}
}

onunload() {
Expand Down
1 change: 1 addition & 0 deletions src/obsidian-ex.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ interface PropertyWidget {
}

interface MetadataTypeManager extends Events {
updatePropertyInfoCache(): unknown;
/**
* Reference to App
*/
Expand Down

0 comments on commit 1f51085

Please sign in to comment.