mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix tabs clean feature
This commit is contained in:
parent
2bb12d5339
commit
fb3ad27e18
2 changed files with 9 additions and 6 deletions
|
|
@ -241,6 +241,14 @@ class Tab
|
|||
}
|
||||
}
|
||||
|
||||
public function clean(): void
|
||||
{
|
||||
while ($this->pages)
|
||||
{
|
||||
$this->close();
|
||||
}
|
||||
}
|
||||
|
||||
public function reorder(): void
|
||||
{
|
||||
// Init new index
|
||||
|
|
|
|||
|
|
@ -62,12 +62,7 @@ class Clean
|
|||
|
||||
if (GtkResponseType::OK == $dialog->run())
|
||||
{
|
||||
foreach ($this->tab->menu->browser->container->tab->pages as $page_num => $page)
|
||||
{
|
||||
$this->tab->menu->browser->container->tab->close(
|
||||
$page_num
|
||||
);
|
||||
}
|
||||
$this->tab->menu->browser->container->tab->clean();
|
||||
}
|
||||
|
||||
$dialog->destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue