[gitg] Preload avatar when reloading the repository.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Preload avatar when reloading the repository.
- Date: Fri, 12 Jul 2013 14:00:22 +0000 (UTC)
commit 73435046440286abc59a3401504ee7c89901827e
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Jul 12 09:46:54 2013 +0200
Preload avatar when reloading the repository.
The repository may have changed, also we may not have the
repository when preloading the avatar.
gitg/commit/gitg-commit.vala | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gitg/commit/gitg-commit.vala b/gitg/commit/gitg-commit.vala
index 3023455..b77888a 100644
--- a/gitg/commit/gitg-commit.vala
+++ b/gitg/commit/gitg-commit.vala
@@ -52,17 +52,6 @@ namespace GitgCommit
{
application.bind_property("repository", this,
"repository", BindingFlags.DEFAULT);
-
- // Preload author avatar
- try
- {
- var author = get_signature("AUTHOR");
- var ac = Gitg.AvatarCache.default();
-
- ac.load.begin(author.get_email(), null, (obj, res) => {
- ac.load.end(res);
- });
- } catch {}
}
public string display_name
@@ -303,6 +292,17 @@ namespace GitgCommit
d_reloading = true;
+ // Preload author avatar
+ try
+ {
+ var author = get_signature("AUTHOR");
+ var ac = Gitg.AvatarCache.default();
+
+ ac.load.begin(author.get_email(), null, (obj, res) => {
+ ac.load.end(res);
+ });
+ } catch {}
+
var model = d_main.sidebar.model;
var stage = repository.stage;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]