Browse Source

fix tabs clean feature

PHP-GTK3
yggverse 4 months ago
parent
commit
fb3ad27e18
  1. 8
      src/Entity/Browser/Container/Tab.php
  2. 7
      src/Entity/Browser/Menu/Tab/Clean.php

8
src/Entity/Browser/Container/Tab.php

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

7
src/Entity/Browser/Menu/Tab/Clean.php

@ -62,12 +62,7 @@ class Clean @@ -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…
Cancel
Save