Files
mt5-tools/__pycache__/view_settings.cpython-314.pyc
T
unknown f0b30e2097 feat: network settings, update banner and changelog in settings page
view_settings.py:
- Network Access section: LAN vs localhost toggle, port input
- _get_lan_ip: detects first 192.168.x.x address, ignores PPPoE/WAN
- _write_server_config: writes [server] block to config.toml
- _write_config: now preserves existing [server] block when saving theme
- Custom hostname input with step-by-step hosts file instructions
  for Windows (C:\Windows\System32\drivers\etc\hosts) and macOS (/etc/hosts)
- iOS/Android note directing to IP address or static DHCP reservation
- _get_local_sha: reads .git/HEAD directly, no git CLI required
- _get_remote_info: fetches latest commit SHA from GitHub API, 1hr cache
- _get_recent_commits: fetches last 10 commits for changelog, 1hr cache
- check_for_update_banner: call from app.py to show top-of-page info
  banner when local SHA differs from latest GitHub commit
- Version and Changelog section in Settings: local vs remote SHA,
  update warning with git pull instructions, Check again button,
  last 10 commits as collapsible expanders with you-are-here marker
2026-04-20 08:56:37 +10:00

32 KiB