mirror of
https://github.com/alberti42/obsidian-plugins-annotations.git
synced 2026-07-22 10:10:24 +00:00
- Fixed bug where a warning was shown when a new plugin was installed.
This commit is contained in:
parent
f1b9ac1d77
commit
854549a38c
2 changed files with 7 additions and 2 deletions
|
|
@ -432,6 +432,12 @@ export default class PluginsAnnotations extends Plugin {
|
|||
}
|
||||
};
|
||||
},
|
||||
installPlugin: (next: (repo: string, version: string, manifest: PluginManifest) => Promise<void>) => {
|
||||
return async function (this: Plugins, repo: string, version: string, manifest: PluginManifest): Promise<void> {
|
||||
await next.call(this, repo, version, manifest);
|
||||
self.pluginNameToIdMap[manifest.name] = manifest.id;
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
// Register the patch to ensure it gets cleaned up
|
||||
|
|
@ -488,8 +494,6 @@ export default class PluginsAnnotations extends Plugin {
|
|||
|
||||
async observeCommunityPluginsTab(tab: SettingTab) {
|
||||
|
||||
console.log("CALLED");
|
||||
|
||||
// just in case, remove previous observers if there are any
|
||||
this.disconnectObservers();
|
||||
|
||||
|
|
|
|||
1
src/types/obsidian-augment.d.ts
vendored
1
src/types/obsidian-augment.d.ts
vendored
|
|
@ -58,6 +58,7 @@ declare module "obsidian" {
|
|||
plugins: Record<string, Plugin>;
|
||||
getPlugin(id: string): Plugin;
|
||||
uninstallPlugin(pluginId: string): Promise<void>;
|
||||
installPlugin(repo: string, version: string, manifest: PluginManifest): Promise<void>
|
||||
}
|
||||
|
||||
interface InternalPlugins {
|
||||
|
|
|
|||
Loading…
Reference in a new issue