mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement close all tabs action
This commit is contained in:
parent
9d78abfba5
commit
738203aaab
2 changed files with 5 additions and 4 deletions
|
|
@ -35,7 +35,7 @@ impl Main {
|
|||
}
|
||||
|
||||
pub fn tab_close_all(&self) {
|
||||
self.tab.close();
|
||||
self.tab.close_all();
|
||||
}
|
||||
|
||||
pub fn tab_pin(&self) {
|
||||
|
|
|
|||
|
|
@ -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!()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue