aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2025-09-11 12:18:45 +0200
committerEike Ziller <[email protected]>2025-09-11 11:25:12 +0000
commit5300314722a90f88fb97808fc6f9ad867e197f2e (patch)
treec4f1e60763020e326d80c739f555853ca7c69860
parent1e7f76cb5fd036da4fb5fdb7659bcac93a4834fb (diff)
Docker: Fix update of "reachable state" when mounts change
The kit is nowadays marked as "unsuited" for a project, if the build device cannot "reach" the project directory. When the Docker device's mounts change, this needs to be re-checked, so send a DeviceManager::deviceUpdated signal to trigger the notification chain. Follows 4a8bb7ddbc7638de8af9734183615e9d89a2237d Change-Id: Ic95a2b9d13ae57a35590bbb09e1e08c50149a6e1 Reviewed-by: Christian Kandeler <[email protected]> Reviewed-by: Marcus Tillmanns <[email protected]>
-rw-r--r--src/plugins/docker/dockerdevice.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/docker/dockerdevice.cpp b/src/plugins/docker/dockerdevice.cpp
index 3a6093ca642..3605f1e7428 100644
--- a/src/plugins/docker/dockerdevice.cpp
+++ b/src/plugins/docker/dockerdevice.cpp
@@ -463,6 +463,9 @@ DockerDevice::DockerDevice()
mounts.setDefaultValue({Core::DocumentManager::projectsDirectory().toUrlishString()});
mounts.setToolTip(Tr::tr("Maps paths in this list one-to-one to the docker container."));
mounts.setPlaceHolderText(Tr::tr("Host directories to mount into the container."));
+ mounts.addOnChanged(DeviceManager::instance(), [this] {
+ DeviceManager::instance()->deviceUpdated(id());
+ });
extraArgs.setSettingsKey(DockerDeviceExtraArgs);
extraArgs.setLabelText(Tr::tr("Extra arguments:"));