From: Alan Knowles Date: Mon, 24 Dec 2018 07:21:31 +0000 (+0800) Subject: RooRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=65a6e0b7ce650b57f251b1eca6240778cc271f7a RooRepo.vala --- diff --git a/RooRepo.vala b/RooRepo.vala index a484206e..44446628 100644 --- a/RooRepo.vala +++ b/RooRepo.vala @@ -1,13 +1,26 @@ + + +static RooRepo _RooRepo ; + public class RooRepo : Object { - + public string id; // not really important that they are numbers.. public string project_id; public string description; public string shortname; + + static init() + { + if (_RooRepo == null) { + _RooRepo = new RooRepo(); + RooRepo.load(); + } + } + static Gee.ArrayList _repos; // only available for singletonn. static public Gee.ArrayList() { RooRepo.init();