Device: Don't leave hasSeamlessWifiToggle enabled when hasWifiToggle is disabled (#11060)

Fix #11059
reviewable/pr11079/r1
NiLuJe 6 months ago committed by GitHub
parent fee2b79829
commit 94a82087de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -285,6 +285,11 @@ function Device:init()
self.screen:toggleSWDithering(true)
end
end
-- Can't be seamless if you can't do it at all ;)
if not self:hasWifiToggle() then
self.hasSeamlessWifiToggle = no
end
end
function Device:setScreenDPI(dpi_override)

@ -463,6 +463,7 @@ local PocketBook613 = PocketBook:extend{
display_dpi = 167,
isTouchDevice = no,
hasWifiToggle = no,
hasSeamlessWifiToggle = no,
hasFrontlight = no,
hasDPad = yes,
hasFewKeys = yes,

@ -70,6 +70,7 @@ local Device = Generic:extend{
hasKeys = yes,
hasDPad = yes,
hasWifiToggle = no,
hasSeamlessWifiToggle = no,
isTouchDevice = yes,
isDefaultFullscreen = no,
needsScreenRefreshAfterResume = no,

Loading…
Cancel
Save