From: Alan Knowles Date: Mon, 24 Dec 2018 07:29:08 +0000 (+0800) Subject: RooRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=c8b21cf43b4c04572666c2e79e0ff5b4b2e9e164 RooRepo.vala --- diff --git a/RooRepo.vala b/RooRepo.vala index f75a0eac..caa45b18 100644 --- a/RooRepo.vala +++ b/RooRepo.vala @@ -43,6 +43,16 @@ public class RooRepo : Object GLib.debug("ADD project %s : %s : %s", add.id, add.shortname, add.project_id); return add; } + + public static void reload() /// has to be called on singleton.. + { + RooRepo.loadcount = 0; + RooRepo.init(); + if (RooRepo.loadcount == 0 ) { + RooRepo.load(); + } + } + static void load() // only called from above {