Browse Source

content_explore: Stop spinners when idle

merge-requests/1327/merge
Maximiliano Sandoval R 3 years ago
parent
commit
c8d3d67d81
No known key found for this signature in database
GPG Key ID: D64A8D747F6FE706
  1. 3
      data/resources/ui/content-explore.ui
  2. 4
      src/session/content/explore/mod.rs

3
data/resources/ui/content-explore.ui

@ -53,8 +53,7 @@
<class name="explore"/>
</style>
<child>
<object class="GtkSpinner" id="spinner">
<property name="spinning">True</property>
<object class="Spinner" id="spinner">
<property name="valign">center</property>
<property name="halign">center</property>
<property name="vexpand">True</property>

4
src/session/content/explore/mod.rs

@ -13,7 +13,7 @@ pub use self::{
public_room::PublicRoom, public_room_list::PublicRoomList, public_room_row::PublicRoomRow,
servers_popover::ExploreServersPopover,
};
use crate::session::Session;
use crate::{components::Spinner, session::Session};
mod imp {
use std::cell::{Cell, RefCell};
@ -31,7 +31,7 @@ mod imp {
#[template_child]
pub stack: TemplateChild<gtk::Stack>,
#[template_child]
pub spinner: TemplateChild<gtk::Spinner>,
pub spinner: TemplateChild<Spinner>,
#[template_child]
pub empty_label: TemplateChild<gtk::Label>,
#[template_child]

Loading…
Cancel
Save