message_media: Stop spinners when idle

This commit is contained in:
Maximiliano Sandoval R 2023-04-10 13:47:00 +02:00
parent 59c6fc2441
commit d3a9732cae
No known key found for this signature in database
GPG key ID: D64A8D747F6FE706
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@
</object>
</child>
<child type="overlay">
<object class="GtkSpinner" id="overlay_spinner">
<object class="Spinner" id="overlay_spinner">
<property name="halign">center</property>
<property name="valign">center</property>
<layout>

View file

@ -19,7 +19,7 @@ use matrix_sdk::{
use super::ContentFormat;
use crate::{
components::{ImagePaintable, VideoPlayer},
components::{ImagePaintable, Spinner, VideoPlayer},
session::Session,
spawn, spawn_tokio,
utils::{cache_dir, media::media_type_uid, uint_to_i32},
@ -76,7 +76,7 @@ mod imp {
#[template_child]
pub overlay_error: TemplateChild<gtk::Image>,
#[template_child]
pub overlay_spinner: TemplateChild<gtk::Spinner>,
pub overlay_spinner: TemplateChild<Spinner>,
}
#[glib::object_subclass]