From: Alan Knowles Date: Mon, 12 May 2014 02:17:12 +0000 (+0800) Subject: GitRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=8080b83ade18479ea4f882dd05f27f755020d1f6 GitRepo.vala --- diff --git a/GitRepo.vala b/GitRepo.vala index d7333d80..d1638cd6 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -38,11 +38,15 @@ public class GitRepo : Object public static Array list() { - if (Repo._list !== false) { - return Repo._list; + if (GitRepo.list_cache !== null) { + return GitRepo.list_cache; } - Repo._list = []; - var dir = GLib.get_home_dir() + '/gitlive'; + + GitRepo.list_cache = new Array(); + + var dir = Enviroment.get_home_dir() + '/gitlive'; + + var ar = File.list(dir ); print(JSON.stringify(ar)); ar.forEach(function(f) {