mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
remove private level for the entry with extra methods
This commit is contained in:
parent
6e4eec54f0
commit
e7e216aaea
8 changed files with 34 additions and 57 deletions
|
|
@ -4,6 +4,7 @@ use ggemini::{
|
|||
client::{Client, Request, Response},
|
||||
gio::{file_output_stream, memory_input_stream},
|
||||
};
|
||||
use gtk::prelude::EditableExt;
|
||||
use gtk::{
|
||||
gdk::Texture,
|
||||
gdk_pixbuf::Pixbuf,
|
||||
|
|
@ -569,7 +570,7 @@ fn handle(
|
|||
} else {
|
||||
let t = target.to_string();
|
||||
if matches!(redirect, Redirect::Permanent { .. }) {
|
||||
page.navigation.request.set_text(&t);
|
||||
page.navigation.request.entry.set_text(&t);
|
||||
}
|
||||
redirects.replace(total);
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use super::{Feature, Page};
|
|||
use crate::tool::{Format, uri_to_title};
|
||||
use gtk::gio::{MemoryInputStream, SocketConnection};
|
||||
use gtk::prelude::{
|
||||
Cast, IOStreamExt, InputStreamExtManual, OutputStreamExtManual, SocketClientExt,
|
||||
Cast, EditableExt, IOStreamExt, InputStreamExtManual, OutputStreamExtManual, SocketClientExt,
|
||||
};
|
||||
use gtk::{
|
||||
gdk::Texture,
|
||||
|
|
@ -59,7 +59,7 @@ impl Nex {
|
|||
.request
|
||||
.info
|
||||
.replace(i.into_permanent_redirect());
|
||||
self.page.navigation.request.set_text(&r);
|
||||
self.page.navigation.request.entry.set_text(&r);
|
||||
self.page.item_action.load.activate(Some(&r), false, true);
|
||||
return; // prevents operation cancelled message on redirect
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue