fix tabs clean feature

This commit is contained in:
yggverse 2024-07-28 04:26:51 +03:00
parent 2bb12d5339
commit fb3ad27e18
2 changed files with 9 additions and 6 deletions

View file

@ -241,6 +241,14 @@ class Tab
} }
} }
public function clean(): void
{
while ($this->pages)
{
$this->close();
}
}
public function reorder(): void public function reorder(): void
{ {
// Init new index // Init new index

View file

@ -62,12 +62,7 @@ class Clean
if (GtkResponseType::OK == $dialog->run()) if (GtkResponseType::OK == $dialog->run())
{ {
foreach ($this->tab->menu->browser->container->tab->pages as $page_num => $page) $this->tab->menu->browser->container->tab->clean();
{
$this->tab->menu->browser->container->tab->close(
$page_num
);
}
} }
$dialog->destroy(); $dialog->destroy();