[connections/gnome-41] collection-view-child: Properly reset source id for thumbnailer
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/gnome-41] collection-view-child: Properly reset source id for thumbnailer
- Date: Tue, 17 Aug 2021 13:04:40 +0000 (UTC)
commit ee3653541d3afd4cea974240cd82ae7100a35b85
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Aug 17 14:57:22 2021 +0200
collection-view-child: Properly reset source id for thumbnailer
src/collection-view-child.vala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/collection-view-child.vala b/src/collection-view-child.vala
index 597b820..5101382 100644
--- a/src/collection-view-child.vala
+++ b/src/collection-view-child.vala
@@ -47,8 +47,9 @@ namespace Connections {
private void update_thumbnail () {
thumbnail_id = Timeout.add_seconds (3, () => {
+ thumbnail_id = 0;
+
if (!connection.connected) {
- thumbnail_id = 0;
thumbnail.set_from_icon_name ("org.gnome.Connections-symbolic",
Gtk.IconSize.LARGE_TOOLBAR);
return false;
@@ -69,6 +70,7 @@ namespace Connections {
~CollectionViewChild () {
if (thumbnail_id != 0)
Source.remove (thumbnail_id);
+ thumbnail_id = 0;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]