mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
update subtitle format
This commit is contained in:
parent
74b030a132
commit
bc16526b84
1 changed files with 23 additions and 12 deletions
|
|
@ -89,9 +89,11 @@ void Page::update()
|
|||
{
|
||||
// Update page extras
|
||||
set(
|
||||
_("Loading.."),
|
||||
pageNavbar->get_request_text(),
|
||||
0
|
||||
pageNavbar->get_request_host(),
|
||||
Glib::ustring::sprintf(
|
||||
_("load %s.."),
|
||||
pageNavbar->get_request_text()
|
||||
), 0
|
||||
);
|
||||
|
||||
// Connect scheme driver
|
||||
|
|
@ -125,9 +127,11 @@ void Page::update()
|
|||
[this](const Glib::RefPtr<Gio::AsyncResult> & result)
|
||||
{
|
||||
set(
|
||||
_("Connect.."),
|
||||
pageNavbar->get_request_host(),
|
||||
.25
|
||||
Glib::ustring::sprintf(
|
||||
_("connect %s.."),
|
||||
pageNavbar->get_request_host()
|
||||
), .25
|
||||
);
|
||||
|
||||
GioSocketConnection_RefPtr = GioSocketClient_RefPtr->connect_to_host_finish(
|
||||
|
|
@ -143,9 +147,12 @@ void Page::update()
|
|||
[this](const Glib::RefPtr<Gio::AsyncResult> & result)
|
||||
{
|
||||
set(
|
||||
_("Request.."),
|
||||
pageNavbar->get_request_host(),
|
||||
.5
|
||||
Glib::ustring::sprintf(
|
||||
_("request %s.."),
|
||||
pageNavbar->get_request_path().empty() ? pageNavbar->get_request_host()
|
||||
: pageNavbar->get_request_path()
|
||||
), .5
|
||||
);
|
||||
|
||||
// Response
|
||||
|
|
@ -155,9 +162,12 @@ void Page::update()
|
|||
[this](const Glib::RefPtr<Gio::AsyncResult> & result)
|
||||
{
|
||||
set(
|
||||
_("Reading response.."),
|
||||
pageNavbar->get_request_host(),
|
||||
.75
|
||||
Glib::ustring::sprintf(
|
||||
_("reading %s.."),
|
||||
pageNavbar->get_request_path().empty() ? pageNavbar->get_request_host()
|
||||
: pageNavbar->get_request_path()
|
||||
), .75
|
||||
);
|
||||
|
||||
// Parse meta
|
||||
|
|
@ -195,9 +205,10 @@ void Page::update()
|
|||
GioSocketConnection_RefPtr->close();
|
||||
|
||||
set(
|
||||
_("Page title"), // @TODO
|
||||
pageNavbar->get_request_host(),
|
||||
1
|
||||
pageNavbar->get_request_host(), // @TODO title
|
||||
pageNavbar->get_request_path().empty() ? pageNavbar->get_request_host()
|
||||
: pageNavbar->get_request_path()
|
||||
, 1
|
||||
);
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue