comparison src/main.ts @ 16:a50ef39473b6 1.0.4

Fix plugin ID, bump version to 1.0.4
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 12 Mar 2022 12:04:05 -0800
parents 7da0dec2dc8d
children 815b93d13e0f
comparison
equal deleted inserted replaced
15:5a3d7a73c3d2 16:a50ef39473b6
147 147
148 view.register(() => { 148 view.register(() => {
149 // Don't hold a reference to this plugin here because this callback 149 // Don't hold a reference to this plugin here because this callback
150 // will outlive it if it gets deactivated. So let's find it, and 150 // will outlive it if it gets deactivated. So let's find it, and
151 // do nothing if we don't find it. 151 // do nothing if we don't find it.
152 var plugin = app.plugins.getPlugin("remember-file-state"); 152 var plugin = app.plugins.getPlugin("obsidian-remember-file-state");
153 if (plugin) { 153 if (plugin) {
154 console.debug(`Unregistering view ${viewId} callback`, filePath); 154 console.debug(`Unregistering view ${viewId} callback`, filePath);
155 delete plugin._viewUninstallers[viewId]; 155 delete plugin._viewUninstallers[viewId];
156 uninstall(); 156 uninstall();
157 } else { 157 } else {
158 console.debug( 158 console.debug(
159 "Plugin remember-file-state has been unloaded, ignoring unregister"); 159 "Plugin obsidian-remember-file-state has been unloaded, ignoring unregister");
160 } 160 }
161 }); 161 });
162 } 162 }
163 163
164 private readonly onFileOpen = async ( 164 private readonly onFileOpen = async (