ExternalKeyboards: Drop the startup FM workaround

Unnecessary since 2db294d0b7,
as the delayed event takes care of our problem ;).
reviewable/pr9750/r10^2
NiLuJe 2 years ago
parent 5e1932bf38
commit 6f29b48587

@ -92,7 +92,6 @@ local ExternalKeyboard = WidgetContainer:extend{
original_device_values = nil,
keyboard_fds = {},
connected_keyboards = 0,
startup = true,
}
function ExternalKeyboard:init()
@ -115,16 +114,10 @@ function ExternalKeyboard:init()
role = USB_ROLE_HOST
end
if role == USB_ROLE_HOST then
-- NOTE: On startup, if the FM is not in classic mode, the coverbrowser plugin does a funky hostile takeover at runtime.
-- Delay our own stuff to make sure we affect the final widget.
if ExternalKeyboard.startup then
UIManager:nextTick(self.findAndSetupKeyboards, self)
ExternalKeyboard.startup = nil
else
-- Sweep the full class/input sysfs tree to look for keyboards
self:findAndSetupKeyboards()
end
end
end
function ExternalKeyboard:addToMainMenu(menu_items)
menu_items.external_keyboard = {

Loading…
Cancel
Save