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
@@ -170,10 +170,6 @@ impl ledger_gui::owner::Owner for ViewerOwner {
|
||||
)
|
||||
}
|
||||
|
||||
fn close_books(&self) -> Result<String, String> {
|
||||
ledger_host::commands::close_books(&self.common)
|
||||
}
|
||||
|
||||
fn new_books(&self, id: &str, currency: &str) -> Result<String, String> {
|
||||
ledger_host::commands::new_books_and_home(&self.common, id, currency)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user