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
@@ -578,9 +578,6 @@ struct Agentic {
|
||||
}
|
||||
|
||||
impl Owner for Agentic {
|
||||
fn close_books(&self) -> Result<String, String> {
|
||||
Err("not here".into())
|
||||
}
|
||||
fn new_books(&self, _: &str, _: &str) -> Result<String, String> {
|
||||
Err("not here".into())
|
||||
}
|
||||
@@ -2095,10 +2092,6 @@ impl Gated {
|
||||
}
|
||||
|
||||
impl Owner for Gated {
|
||||
fn close_books(&self) -> Result<String, String> {
|
||||
self.block();
|
||||
Ok("The books are closing.".into())
|
||||
}
|
||||
fn new_books(&self, _: &str, _: &str) -> Result<String, String> {
|
||||
Err("not here".into())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user