Skip to content

Commit

Permalink
Fix buttons on core plugins page for 0.13.21
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Jan 19, 2022
1 parent 47ac35e commit c8a032e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "hotkey-helper",
"name": "Hotkey Helper",
"version": "0.3.10",
"version": "0.3.11",
"minAppVersion": "0.13.19",
"description": "Easily see and access any plugin's settings or hotkey assignments (and conflicts) from the Community Plugins tab",
"author": "PJ Eby",
Expand Down
10 changes: 5 additions & 5 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,12 @@ export default class HotkeyHelper extends Plugin {
const manifest = manifests[which++], enabled = !!app.plugins.plugins[manifest.id];
trigger("plugin-settings:plugin-control", this, manifest, enabled, tabId);
}
return old.call(this, function(b) {
cb(b);
if (!in_event && b.extraSettingsEl.find("svg.gear, svg.any-key")) b.extraSettingsEl.detach();
});
};
return old.call(this, cb);
return old.call(this, function(b) {
cb(b);
// Prevent core from showing buttons that lack hotkey counts/conflicts
if (!in_event && b.extraSettingsEl.find("svg.gear, svg.any-key")) b.extraSettingsEl.detach();
});
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"0.3.10": "0.13.19",
"0.3.11": "0.13.19",
"0.3.8": "0.12.3",
"0.3.0": "0.12.1",
"0.2.1": "0.11.13",
Expand Down

0 comments on commit c8a032e

Please sign in to comment.