mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Device: Don't leave hasSeamlessWifiToggle enabled when hasWifiToggle is disabled (#11060)
Fix #11059
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user