implement close all tabs action

This commit is contained in:
yggverse 2024-09-24 00:56:46 +03:00
parent 9d78abfba5
commit 738203aaab
2 changed files with 5 additions and 4 deletions

View File

@ -35,7 +35,7 @@ impl Main {
}
pub fn tab_close_all(&self) {
self.tab.close();
self.tab.close_all();
}
pub fn tab_pin(&self) {

View File

@ -58,10 +58,11 @@ impl Tab {
self.widget.remove_page(self.widget.current_page());
}
/* @TODO
pub fn close_all(&self) {
todo!()
}*/
while let Some(page_number) = self.widget.current_page() {
self.widget.remove_page(Some(page_number));
}
}
pub fn pin(&self) -> bool {
todo!()