Skip to content

Refactor Connect() and Disconnect() functions in GUI to allow JSON RPC to update UI #3367

Closed

Description

@ann0see

What is the current behaviour and why should it be changed?

Besides multiple other coupling issues, we should refactor the Connect() and Disconnect() functions in

https://github.com/jamulussoftware/jamulus/blob/main/src/clientdlg.cpp#L1196-L1296

to be able to call a method on the client to update the GUI state if necessary via JSON-RPC.

#3364 moves them to client.cpp and introduces signals and is probably a good starting point.

Has this feature been discussed and generally agreed?

No. However it’s a known issue that the GUI holds state and cannot be controlled that well in its current state programmatically.

Activity

  1. added
    feature request
    refactoring
    JSON-RPC
    on Sep 8, 2024
  2. ann0see commented on Sep 8, 2024

    @ann0see
    MemberAuthor

    So e.g. create
    CClient::Connect ( const QString& strSelectedAddress ) which starts the client and emits a signal calling CClientDlg::Connect(). Same for Disconnect().

  3. added theissue type on Jan 25, 2026
  4. added this to the Release 4.0.0 milestone on Jan 25, 2026
  5. moved this from Triage to Done in Trackingon Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    JSON-RPCfeature requestrefactoring

    Type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions