Kodi showing not connected to internet

I have Kodi running on Raspberry pi on LibreElec the pi is connected to the internet via wifi all working great but when i go to the setting on Kodi it say not connected

Does anyone know why this is happening and how to fix?

Thank you in advance