fix typo when observing config

This commit is contained in:
Sertonix 2023-09-01 18:45:32 +00:00 committed by GitHub
parent 069869f881
commit 491676e6de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,13 +83,13 @@ module.exports = {
atom.menu.add([menuItem]);
}
this.subscriptions.add(atom.config.observe('find-and-replace.showInMenuBar'), (value) => {
this.subscriptions.add(atom.config.observe('find-and-replace.showInMenuBar', (value) => {
if (value) {
atom.menu.add([menuItem]);
} else {
atom.menu.remove([menuItem]);
}
});
}));
this.subscriptions.add(atom.commands.add('.find-and-replace, .project-find', 'window:focus-next-pane', () => atom.views.getView(atom.workspace).focus())
);