refactor(gui): remove "Close the books": the app is the host and a company's tab closes the company
The menu item asked a host's lease socket, which the app does not have, and under the app could only answer "the app has these books open". Closing a company's tab closes that company in the app's server (WB-app-2) and closing the window closes them all (WB-app-4), so the item had no job left. The Owner trait loses close_books; the test owners lose their copies. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
eafd269ba0
commit
8d2187bae7
11 files changed
+10
-90
No files matched your search
@@ -207,9 +207,6 @@ impl Owner for Fake {
|
||||
self.note(format!("connect {} {book}", agent.key()));
|
||||
Ok(vec![format!("{} reaches the books.", agent.label())])
|
||||
}
|
||||
fn close_books(&self) -> Result<String, String> {
|
||||
Err("not here".into())
|
||||
}
|
||||
fn new_books(&self, _: &str, _: &str) -> Result<String, String> {
|
||||
Err("not here".into())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user