mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
use namespace
This commit is contained in:
parent
0f01eb83de
commit
f97cd44cad
1 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
use super::{Feature, Page};
|
use super::{Feature, Page};
|
||||||
use crate::tool::Format;
|
use crate::tool::{Format, uri_to_title};
|
||||||
use ggemini::client::connection::response::{Input, Redirect};
|
use ggemini::client::connection::response::{Input, Redirect};
|
||||||
use ggemini::{
|
use ggemini::{
|
||||||
client::{Client, Request, Response},
|
client::{Client, Request, Response},
|
||||||
|
|
@ -258,7 +258,7 @@ fn handle(
|
||||||
}
|
}
|
||||||
// Init download widget
|
// Init download widget
|
||||||
let s = page.content.to_status_download(
|
let s = page.content.to_status_download(
|
||||||
crate::tool::uri_to_title(&uri).trim_matches(MAIN_SEPARATOR), // grab default filename from base URI,
|
uri_to_title(&uri).trim_matches(MAIN_SEPARATOR), // grab default filename from base URI,
|
||||||
// format FS entities
|
// format FS entities
|
||||||
&cancellable,
|
&cancellable,
|
||||||
{
|
{
|
||||||
|
|
@ -371,7 +371,7 @@ fn handle(
|
||||||
page.search.set(Some(w.text_view));
|
page.search.set(Some(w.text_view));
|
||||||
page.set_title(&match w.meta.title {
|
page.set_title(&match w.meta.title {
|
||||||
Some(t) => t.into(), // @TODO
|
Some(t) => t.into(), // @TODO
|
||||||
None => crate::tool::uri_to_title(&uri),
|
None => uri_to_title(&uri),
|
||||||
});
|
});
|
||||||
page.set_progress(0.0);
|
page.set_progress(0.0);
|
||||||
page.window_action
|
page.window_action
|
||||||
|
|
@ -455,7 +455,7 @@ fn handle(
|
||||||
move |result| {
|
move |result| {
|
||||||
match result {
|
match result {
|
||||||
Ok(buffer) => {
|
Ok(buffer) => {
|
||||||
page.set_title(&crate::tool::uri_to_title(&uri));
|
page.set_title(&uri_to_title(&uri));
|
||||||
page.content.to_image(&Texture::for_pixbuf(&buffer));
|
page.content.to_image(&Texture::for_pixbuf(&buffer));
|
||||||
let mut i = page.navigation.request.info.borrow_mut();
|
let mut i = page.navigation.request.info.borrow_mut();
|
||||||
i
|
i
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue