Browse Source

complete save to file action

PHP-GTK3
yggverse 2 months ago
parent
commit
9b5c434ad1
  1. 5
      src/Entity/Browser/Menu/File/Save.php

5
src/Entity/Browser/Menu/File/Save.php

@ -57,12 +57,15 @@ class Save
); );
if (\GtkResponseType::APPLY == $dialog->run()) if (\GtkResponseType::APPLY == $dialog->run())
{
if ($page = $this->file->menu->browser->container->tab->getPage())
{ {
file_put_contents( file_put_contents(
$dialog->get_filename(), $dialog->get_filename(),
'' // @TODO get active tab content $page->content->data->raw
); );
} }
}
$dialog->destroy(); $dialog->destroy();
} }

Loading…
Cancel
Save