Phase 3: popup UI with network list and passphrase dialog

e_gadcon_popup hosts a status label, a scrollable list of networks
(snapshotted from iwd_manager and sorted: connected → known → alpha),
and Rescan/Enable/Disable action buttons. Clicking a network calls
Network.Connect; iwd then asks our Agent for a passphrase, which is
routed to a modal elm_popup via iwd_manager_set_passphrase_handler.

The passphrase handler is installed at module init so iwd-initiated
auth works even when the popup is closed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
nemunaire 2026-04-08 22:49:40 +07:00
commit e66a3effa6
6 changed files with 365 additions and 18 deletions

View file

@ -1,6 +1,7 @@
#include "e_mod_main.h"
#include "iwd/iwd_manager.h"
#include "e_mod_gadget.h"
#include "e_mod_popup.h"
#include "e_mod_config.h"
E_Iwd_Module *e_iwd = NULL;
@ -29,6 +30,7 @@ e_modapi_init(E_Module *m)
e_iwd_config_load();
e_iwd->manager = iwd_manager_new(e_iwd->conn);
e_iwd_popup_install_passphrase_handler();
e_iwd_gadget_init();
return m;