toggleswitch: fix long-press (#12215)

reviewable/pr12217/r1
hius07 2 months ago committed by GitHub
parent 8cb221c6c6
commit 477d6865f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -237,7 +237,7 @@ end
function ToggleSwitch:onHoldSelect(arg, gev)
local position = self:calculatePosition(gev)
if self.toggle[position] == "" then
if self.toggle[position] == "" or self.config.onMakeDefault == nil then
return true
end
if self.name == "font_fine_tune" then

Loading…
Cancel
Save