Skip to content

feat(shared): default "Show Clients for" to "All files" - #126

Merged
got3nks merged 1 commit into
amule-org:masterfrom
got3nks:fix/shared-clients-default-all
Jun 12, 2026
Merged

feat(shared): default "Show Clients for" to "All files"#126
got3nks merged 1 commit into
amule-org:masterfrom
got3nks:fix/shared-clients-default-all

Conversation

@got3nks

@got3nks got3nks commented Jun 12, 2026

Copy link
Copy Markdown

Summary

Closes #114. The "Show Clients for" radio on the Shared Files tab defaulted to ClientShowSelected, which only populates the peer table once the user clicks on a specific file. First-time users land on the tab, see an empty list, and have no obvious cue that selecting a file is required. Flipping the default to ClientShowAll makes the tab self-explanatory.

Change

One line in CSharedFilesWnd::CSharedFilesWnd:

- m_clientShow = (EClientShow) config->Read("/GUI/SharedWnd/ClientShowMode", ClientShowSelected);
+ m_clientShow = (EClientShow) config->Read("/GUI/SharedWnd/ClientShowMode", ClientShowAll);

The change is in core code shared between the monolithic amule and amulegui builds (the surrounding #ifdef CLIENT_GUI blocks are at lines 197 and 214; this line is outside both), so both targets pick up the new default.

Behaviour for existing users

Unchanged. Anyone who has previously opened the Shared Files tab has the explicit selection persisted in ~/.aMule/amule.conf under [GUI/SharedWnd]ClientShowMode=…, so wxConfigBase::Read returns their saved value rather than the new fallback. Only fresh installs and users who've never opened that tab see the changed default.

Test plan

  • Built clean on macOS for both amule and amulegui (cmake --build build-macos --target amule amulegui).
  • CI green on Ubuntu / macOS / mingw-w64.
  • Manual: fresh ~/.aMule/ → open Shared Files tab → "All files" pre-selected, peer list populated immediately.

Previously the radio defaulted to ClientShowSelected, which requires
the user to first click on a shared file before any client/peer rows
appear -- confusing for first-time users who land on the Shared
Files tab and see an empty list with no obvious reason why.

Flip the fallback at SharedFilesWnd.cpp:76 to ClientShowAll so the
peer table populates with all known clients on first open.
Behaviour for existing users is unchanged: anyone who has opened
the Shared Files tab before has the explicit selection persisted in
`/GUI/SharedWnd/ClientShowMode`, so `config->Read` returns their
saved value instead of the new fallback.

The change lives in core (non-CLIENT_GUI-gated) code shared between
the monolithic `amule` and `amulegui` builds, so both pick it up.

Closes amule-project#114.
@got3nks
got3nks merged commit 8d7618a into amule-org:master Jun 12, 2026
10 checks passed
@got3nks
got3nks deleted the fix/shared-clients-default-all branch June 12, 2026 16:23
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.

Change default setting for Shared files

1 participant