mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +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
|
public function reorder(): void
|
||||||
{
|
{
|
||||||
// Init new index
|
// Init new index
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue