fix(toggle): hide toggle when real keymap does not exist. Closes #378

This commit is contained in:
Folke Lemaitre 2025-02-14 22:13:16 +01:00
parent 538bc3b65a
commit ee9e6179fe
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -128,6 +128,7 @@ function Toggle:_wk(keys, mode)
{
keys,
mode = mode,
real = true,
icon = function()
local key = self:get() and "enabled" or "disabled"
return {