mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-12 05:31:06 +00:00
draft socket reading step
This commit is contained in:
parent
3dc33c51ff
commit
3bfacf7ea9
@ -305,8 +305,26 @@ void Page::navigation_reload(
|
||||
|
||||
action__update->activate();
|
||||
|
||||
pageContent->set_text_gemini( // @TODO
|
||||
buffer
|
||||
// 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();
|
||||
|
||||
progress_fraction = 1;
|
||||
|
||||
action__update->activate();
|
||||
|
||||
// Set content driver
|
||||
pageContent->set_text_gemini( // @TODO
|
||||
buffer
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user