mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] ReaderGesture: Use getCurrentNetwork().ssid (#5334)
Otherwise ffi/util.template crashes on a table.
This commit is contained in:
@@ -1434,8 +1434,8 @@ function ReaderGesture:gestureAction(action, ges)
|
||||
local info_text
|
||||
local current_network = NetworkMgr:getCurrentNetwork()
|
||||
-- this method is only available for some implementations
|
||||
if current_network then
|
||||
info_text = T(_("Already connected to network %1."), NetworkMgr:getCurrentNetwork())
|
||||
if current_network and current_network.ssid then
|
||||
info_text = T(_("Already connected to network %1."), current_network.ssid)
|
||||
else
|
||||
info_text = _("Already connected.")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user