mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
enshort constructions
This commit is contained in:
parent
c843e5b7c0
commit
4342796d1a
@ -91,10 +91,9 @@ impl Tab {
|
|||||||
action_page_reload.clone(),
|
action_page_reload.clone(),
|
||||||
action_update.clone(),
|
action_update.clone(),
|
||||||
// Options
|
// Options
|
||||||
match gobject.selected_page() {
|
gobject
|
||||||
Some(page) => Some(gobject.page_position(&page) + 1),
|
.selected_page()
|
||||||
None => None,
|
.map(|page| gobject.page_position(&page) + 1),
|
||||||
},
|
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
|
@ -975,11 +975,7 @@ pub fn migrate(tx: &Transaction) -> Result<(), String> {
|
|||||||
///
|
///
|
||||||
/// * this feature may be improved and moved outside @TODO
|
/// * this feature may be improved and moved outside @TODO
|
||||||
fn uri_to_title(uri: &Uri) -> GString {
|
fn uri_to_title(uri: &Uri) -> GString {
|
||||||
let title = GString::from(match uri.path().split('/').last() {
|
let title = GString::from(uri.path().split('/').last().unwrap_or_default());
|
||||||
Some(filename) => filename,
|
|
||||||
None => "",
|
|
||||||
});
|
|
||||||
|
|
||||||
if title.is_empty() {
|
if title.is_empty() {
|
||||||
match uri.host() {
|
match uri.host() {
|
||||||
Some(host) => gformat!("{host}"),
|
Some(host) => gformat!("{host}"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user