Skip to content

Commit

Permalink
Remove debugging notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Billiam committed Jan 11, 2025
1 parent bb51199 commit 4461e18
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions hardcover/lib/auto_wifi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,19 @@ function AutoWifi:withWifi(callback)
end

if self.settings:readSetting(SETTING.ENABLE_WIFI) and not NetworkMgr.pending_connection and Device:hasWifiRestore() then
--UIManager:show(Notification:new {
-- text = "Enabling wifi"
--})
--logger.warn("HARDCOVER enabling wifi")

NetworkMgr:restoreWifiAsync()
NetworkMgr:scheduleConnectivityCheck(function()
self.connection_pending = false
UIManager:show(Notification:new {
text = "Connection active"
})
--logger.warn("HARDCOVER wifi enabled")

callback()

-- TODO: schedule turn off wifi, debounce
NetworkMgr:turnOffWifi()
--NetworkMgr:turnOffWifi(function()
-- UIManager:show(Notification:new {
-- text = "Disabled wifi"
-- })
-- logger.warn("HARDCOVER disabling wifi")
--end)
end)
end
Expand Down

0 comments on commit 4461e18

Please sign in to comment.