# fix\(config\): spawn one CLI list command per page open · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/b9a2f2d5ec354f8cf670689f0b887b1fcca8dfdd)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: b9a2f2d5ec354f8cf670689f0b887b1fcca8dfdd

Requested commit: b9a2f2d5ec354f8cf670689f0b887b1fcca8dfdd

Commit: b9a2f2d5ec354f8cf670689f0b887b1fcca8dfdd

Tree: 078cae79f67409d34df9514dbb08e7446d7b4f22

Author: Simone

Committer: Simone

## Message

```
fix(config): spawn one CLI list command per page open

Both the Providers and the Display config pages loaded their CLI list
twice on open: Component.onCompleted called reload() /
loadOverviewProviders() directly while the cfg_commandPath injection
fired onCfg_commandPathChanged, which queues the same load via
Qt.callLater. Whichever trigger ran second disconnected the first
command and spawned a replacement, and under the
injection-after-completion ordering the discarded first run executed
with the fallback codexbar path instead of the configured one.

Route the Component.onCompleted call through Qt.callLater as well:
callLater coalesces repeated calls of the same function before the
deferred pass, and the deferred call reads the injected command path at
execution time, so exactly one correctly-targeted load runs per page
open under either injection ordering.

```

## Parents

- [70a595bce6df847e86603ea11cd37536c0257c4f](https://git.cafe/lucenx/codexbar-plasma/commit/70a595bce6df847e86603ea11cd37536c0257c4f?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/b9a2f2d5ec354f8cf670689f0b887b1fcca8dfdd?format=markdown)
