fix panic

This commit is contained in:
yggverse 2025-06-29 18:50:24 +03:00
parent 565748ae58
commit a4aca33d02

View file

@ -258,7 +258,7 @@ fn render(
c: Cancellable, c: Cancellable,
) { ) {
use crate::tool::uri_to_title; use crate::tool::uri_to_title;
let q = u.to_string(); let q = u.path();
if is_image(&q) { if is_image(&q) {
p.window_action.find.simple_action.set_enabled(false); p.window_action.find.simple_action.set_enabled(false);
Pixbuf::from_stream_async(&m, Some(&c), move |r| match r { Pixbuf::from_stream_async(&m, Some(&c), move |r| match r {