Skip to content

Fix internet-connection: status never resets to disconnected#14

Open
CoderFX wants to merge 1 commit intojayofelony:mainfrom
CoderFX:fix/internet-connection-bugs
Open

Fix internet-connection: status never resets to disconnected#14
CoderFX wants to merge 1 commit intojayofelony:mainfrom
CoderFX:fix/internet-connection-bugs

Conversation

@CoderFX
Copy link
Copy Markdown

@CoderFX CoderFX commented Mar 12, 2026

Summary

  • Fix status permanently stuck on 'C' after first connection — added on_ui_update with timeout-based disconnect detection (default 120s)
  • Fix float position from ui.width() / 2 — use integer division
  • Add configurable position and timeout via options
  • Add __init__, on_config_changed, on_loaded with .get() defaults
  • Remove unused subprocess import
  • Remove __name__ class attribute that shadows Python builtin

Config

[main.plugins.internet-connection]
enabled = true
position = "150, 0"
timeout = 120

- Fix status stuck on 'C' forever after first connection — added
  timeout-based disconnect detection via on_ui_update
- Fix float position from ui.width() / 2 (use integer division)
- Add configurable position and timeout via options
- Add __init__, on_config_changed, on_loaded with .get() defaults
- Remove unused subprocess import
- Remove __name__ class attribute shadowing Python builtin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant