Merge pull request #2762 from ESHAYAT102/fix/stopped-server-settings
🤖 Agent: read the diff at bcdbc252f: the sidebar's stopped-server entry now goes through `open_server`, which loads the server's settings instead of only setting `servers.open`. verify and launcher green; no harness reaches launcher code. Queued for the merger, which waits for this head's parity run.
This commit is contained in:
@@ -1972,7 +1972,7 @@ impl Launcher {
|
||||
.child(sub(tr(if up { "Running" } else { "Stopped" }).into())),
|
||||
)
|
||||
.on_click(cx.listener(move |this, _: &ClickEvent, _, cx| {
|
||||
this.servers.open = Some(dir.clone());
|
||||
this.open_server(dir.clone());
|
||||
this.go(Page::Servers);
|
||||
cx.notify();
|
||||
})),
|
||||
|
||||
@@ -477,7 +477,7 @@ impl Launcher {
|
||||
});
|
||||
}
|
||||
|
||||
fn open_server(&mut self, dir: PathBuf) {
|
||||
pub(super) fn open_server(&mut self, dir: PathBuf) {
|
||||
if self.servers.open.as_ref() == Some(&dir) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user