window: Use GString's display implementation for toast

This commit is contained in:
Christopher Davis 2022-02-04 15:25:12 -08:00 • committed by Christopher Davis
parent f88c48ca69
commit ca3c02a5c2

View file

@ -185,7 +185,7 @@ mod imp {
obj.set_image_from_file(&file, false); obj.set_image_from_file(&file, false);
} else { } else {
obj.show_toast( obj.show_toast(
&format!("\"{}\" is not a valid image.", info.display_name().to_string()), &format!("\"{}\" is not a valid image.", info.display_name()),
adw::ToastPriority::High, adw::ToastPriority::High,
); );
} }