Skip to content

dialog: prompt for nodes.dat on first run alongside server.met - #558

Merged
mrjimenez merged 2 commits into
amule-project:masterfrom
got3nks:feat/first-run-nodes-dat-prompt
May 11, 2026
Merged

dialog: prompt for nodes.dat on first run alongside server.met#558
mrjimenez merged 2 commits into
amule-project:masterfrom
got3nks:feat/first-run-nodes-dat-prompt

Conversation

@got3nks

@got3nks got3nks commented May 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #253. On a fresh install with Kad enabled, aMule asks the user to download server.met but never offers nodes.dat, so Kad sits at "no contacts" until the user manually pastes a URL into the Kad dialog.

Fix

Replace the yes/no wxMessageBox with a wxMultiChoiceDialog:

  • shows checkboxes only for files that are actually missing (so subsequent startups where only one is gone surface a single-checkbox dialog rather than a redundant yes/no);
  • defaults to all-selected;
  • reuses the existing /eMule/Ed2kServersUrl and /eMule/KadNodesUrl prefs (default http://upd.emule-security.org/{server.met,nodes.dat});
  • daemon (no GUI) silently downloads each missing file, matching the prior server.met behaviour.
immagine

Translations regenerated via scripts/update-po.sh to pick up the four new strings; the per-file diff is dominated by mechanical #: src/amule.cpp:NNN line-shift churn.

got3nks added 2 commits May 9, 2026 19:49
…amule-project#253)

The first-run dialog covered server.met but skipped nodes.dat, leaving Kad
disconnected on a fresh install. Replace the yes/no prompt with a single
multi-choice dialog that lists every missing bootstrap file (server.met
when ED2K is enabled and the server list is empty; nodes.dat when Kad is
enabled and the file is missing on disk), defaults to all-selected, and
reuses the existing /eMule/Ed2kServersUrl and /eMule/KadNodesUrl prefs.

Daemon path (no GUI) downloads each missing file unconditionally, matching
the original silent-fetch behaviour for server.met.
Picks up the four new strings (multi-choice dialog title, message, and
the two file-name labels). Mechanical line-number churn from the
amule.cpp insertion cascades through every source file's references.
@mrjimenez
mrjimenez merged commit 7154220 into amule-project:master May 11, 2026
12 checks passed
@got3nks
got3nks deleted the feat/first-run-nodes-dat-prompt branch May 11, 2026 08:00
got3nks added a commit to got3nks/amule that referenced this pull request Jul 23, 2026
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.

first time it runs only download server.met, missing nodes.dat

2 participants