mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
complete save to file action
This commit is contained in:
parent
38203c2ffe
commit
9b5c434ad1
1 changed files with 7 additions and 4 deletions
|
|
@ -58,10 +58,13 @@ class Save
|
|||
|
||||
if (\GtkResponseType::APPLY == $dialog->run())
|
||||
{
|
||||
file_put_contents(
|
||||
$dialog->get_filename(),
|
||||
'' // @TODO get active tab content
|
||||
);
|
||||
if ($page = $this->file->menu->browser->container->tab->getPage())
|
||||
{
|
||||
file_put_contents(
|
||||
$dialog->get_filename(),
|
||||
$page->content->data->raw
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$dialog->destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue