From 65a6e0b7ce650b57f251b1eca6240778cc271f7a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 24 Dec 2018 15:21:31 +0800 Subject: [PATCH] RooRepo.vala --- RooRepo.vala | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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(); -- 2.39.2