Skip to content

Commit 74e0d64

Browse files
committed
Fix plugin id reference.
1 parent b9f2edb commit 74e0d64

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

python/jupyterlab_widgets/src/plugin.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function activateWidgetExtension(
208208
};
209209
if (settingRegistry !== null) {
210210
settingRegistry
211-
.load(plugin.id)
211+
.load(managerPlugin.id)
212212
.then((settings: ISettingRegistry.ISettings) => {
213213
settings.changed.connect(updateSettings);
214214
updateSettings(settings);
@@ -261,9 +261,11 @@ function activateWidgetExtension(
261261
label: trans.__('Save Widget State Automatically'),
262262
execute: (args) => {
263263
return settingRegistry
264-
.set(plugin.id, 'saveState', !SETTINGS.saveState)
264+
.set(managerPlugin.id, 'saveState', !SETTINGS.saveState)
265265
.catch((reason: Error) => {
266-
console.error(`Failed to set ${plugin.id}: ${reason.message}`);
266+
console.error(
267+
`Failed to set ${managerPlugin.id}: ${reason.message}`
268+
);
267269
});
268270
},
269271
isToggled: () => SETTINGS.saveState,

0 commit comments

Comments
 (0)