toggleswitch: fix long-press (#12215)

This commit is contained in:
hius07
2024-07-24 18:36:21 +03:00
committed by GitHub
parent 8cb221c6c6
commit 477d6865f1

View File

@@ -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