mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
temporarily read entire stream data
This commit is contained in:
parent
a837623233
commit
b7a1704598
1 changed files with 10 additions and 30 deletions
|
|
@ -272,7 +272,7 @@ void Page::navigation_reload(
|
|||
action__update->activate();
|
||||
|
||||
// Response
|
||||
GioSocketConnection->get_input_stream()->read_async( // | read_all_async
|
||||
GioSocketConnection->get_input_stream()->read_all_async( // | read_async @TODO
|
||||
buffer,
|
||||
sizeof(buffer) - 1,
|
||||
[this](const Glib::RefPtr<Gio::AsyncResult> & result)
|
||||
|
|
@ -304,24 +304,6 @@ void Page::navigation_reload(
|
|||
// Update
|
||||
mime = MIME::TEXT_GEMINI;
|
||||
|
||||
title = _("Parsing");
|
||||
|
||||
description = Glib::ustring::sprintf(
|
||||
_("Parsing response from %s.."),
|
||||
pageNavigation->get_request_host()
|
||||
);
|
||||
|
||||
progress_fraction = .8;
|
||||
|
||||
action__update->activate();
|
||||
|
||||
// Continue reading..
|
||||
GioSocketConnection->get_input_stream()->read_async( // | read_all_async
|
||||
buffer,
|
||||
sizeof(buffer) - 1,
|
||||
[this](const Glib::RefPtr<Gio::AsyncResult> & result)
|
||||
{
|
||||
// Update
|
||||
title = _("Done"); // @TODO page title
|
||||
|
||||
description = pageNavigation->get_request_host();
|
||||
|
|
@ -336,8 +318,6 @@ void Page::navigation_reload(
|
|||
|
||||
action__update->activate();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue