mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 01:00:02 +00:00
fix page meta data update
This commit is contained in:
parent
4eb824594e
commit
a9d7e59534
@ -397,16 +397,23 @@ void Page::navigation_reload(
|
|||||||
{
|
{
|
||||||
case MIME::TEXT_GEMINI:
|
case MIME::TEXT_GEMINI:
|
||||||
|
|
||||||
|
// Update
|
||||||
|
title = _("Done"); // @TODO
|
||||||
|
|
||||||
|
description = g_uri_get_host(
|
||||||
|
uri
|
||||||
|
);
|
||||||
|
|
||||||
progress_fraction = 1;
|
progress_fraction = 1;
|
||||||
|
|
||||||
// Set content driver
|
// Use content driver
|
||||||
pageContent->update(
|
pageContent->update(
|
||||||
page::Content::TEXT_GEMINI,
|
page::Content::TEXT_GEMINI,
|
||||||
buffer,
|
buffer,
|
||||||
uri
|
uri
|
||||||
);
|
);
|
||||||
|
|
||||||
// Update title on detected by document provider
|
// Update title by document header (on detected)
|
||||||
if (!pageContent->get_title().empty())
|
if (!pageContent->get_title().empty())
|
||||||
{
|
{
|
||||||
title = pageContent->get_title();
|
title = pageContent->get_title();
|
||||||
@ -428,13 +435,6 @@ void Page::navigation_reload(
|
|||||||
action__update->activate();
|
action__update->activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update
|
|
||||||
title = _("Done"); // @TODO page title
|
|
||||||
|
|
||||||
description = g_uri_get_host(
|
|
||||||
uri
|
|
||||||
);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// @TODO other statuses..
|
// @TODO other statuses..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user