mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-10 10:24:13 +00:00
implement close all tabs action
This commit is contained in:
parent
9d78abfba5
commit
738203aaab
@ -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…
x
Reference in New Issue
Block a user