Skip to content

Conversation

@deanlee
Copy link
Contributor

@deanlee deanlee commented Dec 8, 2025

Updates Tici WifiManagerUI._on_network_updated to delete button entries for SSIDs that no longer appear in the latest scan. This prevents stale UI items from lingering and also fixes a memory leak caused by unused button objects never being released.

@github-actions github-actions bot added the ui label Dec 8, 2025
@deanlee deanlee force-pushed the ui-wifi-remove-stale-wifi-network branch from ad3a5d6 to 3b2598b Compare December 8, 2025 05:22
@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

raylib UI Preview

All Screenshots

@sshane
Copy link
Contributor

sshane commented Dec 9, 2025

is this only an issue for tici?

@deanlee
Copy link
Contributor Author

deanlee commented Dec 10, 2025

Mici has memory leaks as well, but the leak observed in mici/_on_network_updated() comes from circular references — not the same root cause as on Tici.

On Mici:

# remove networks no longer present
self._scroller._items[:] = [btn for btn in self._scroller._items if btn.option in self._networks]

However, this only removes the button objects from the list.
Because the button instances are still referenced elsewhere (due to circular references), they are not actually released from memory.

@deanlee deanlee changed the title ui: remove stale Wi-Fi network buttons when networks disappear tici/ui: remove stale Wi-Fi network buttons when networks disappear Dec 10, 2025
@deanlee deanlee changed the title tici/ui: remove stale Wi-Fi network buttons when networks disappear tici/ui: fix memory leak in WiFi list Dec 10, 2025
@deanlee deanlee force-pushed the ui-wifi-remove-stale-wifi-network branch from 3b2598b to 0d9260c Compare December 10, 2025 07:22
@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

mici raylib UI Preview

✅ Videos are identical! View Diff Report

@deanlee deanlee closed this Dec 10, 2025
@deanlee deanlee reopened this Dec 11, 2025
@deanlee deanlee force-pushed the ui-wifi-remove-stale-wifi-network branch from 0d9260c to d31e85c Compare December 11, 2025 05:17
@deanlee deanlee closed this Dec 15, 2025
@deanlee deanlee deleted the ui-wifi-remove-stale-wifi-network branch December 15, 2025 04:27
@sshane
Copy link
Contributor

sshane commented Dec 15, 2025

Are these not applicable anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants