ActiveModColor: Cache the list of modifiers at setup time too

In order for the plugin to work without having to switch layers once, it needs
to scan the keymap for modifiers at setup time too. We do this by calling
`onLayerChange()`, which already does that.

Fixes #670.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/674/head
Gergely Nagy 5 years ago
parent c00a234d86
commit 9dfbe78e1a
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -37,6 +37,9 @@ class ActiveModColorEffect : public kaleidoscope::Plugin {
EventHandlerResult beforeReportingState();
EventHandlerResult onLayerChange();
EventHandlerResult onSetup() {
return onLayerChange();
}
private:
static bool highlight_normal_modifiers_;

Loading…
Cancel
Save