summaryrefslogtreecommitdiff
path: root/plugins/warp/src
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-10-07 14:12:11 -0400
committerMason Reed <mason@vector35.com>2025-10-07 14:12:11 -0400
commit2153c833b67de7e032ff135cdb322bb4e49d2bd1 (patch)
treefc4240256b95d1e7db317a911d8bb7c1497a5575 /plugins/warp/src
parent43476710a30c1ce7abdfbd4371a2892b8038e55e (diff)
[WARP] Implicitly make newly added network sources writable
This fixes an issue where the commit dialog would not fill in the newly added network source
Diffstat (limited to 'plugins/warp/src')
-rw-r--r--plugins/warp/src/container/network.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/warp/src/container/network.rs b/plugins/warp/src/container/network.rs
index db935a5e..9630d832 100644
--- a/plugins/warp/src/container/network.rs
+++ b/plugins/warp/src/container/network.rs
@@ -251,6 +251,8 @@ impl Container for NetworkContainer {
.map_err(|_| CannotCreateSource(path))?;
// Must probe the source before attempting to access it, as it does not exist locally.
self.probe_source(source);
+ // Adding a source inherently makes it writable, so we add it to the set of writable sources.
+ self.writable_sources.insert(source);
Ok(source)
}