From: Alan Knowles Date: Mon, 24 Dec 2018 07:21:42 +0000 (+0800) Subject: RooRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=c479f99e6396a0afdeaa72444b74a2116631969d RooRepo.vala --- diff --git a/RooRepo.vala b/RooRepo.vala index 44446628..8dfbfb0d 100644 --- a/RooRepo.vala +++ b/RooRepo.vala @@ -13,12 +13,13 @@ public class RooRepo : Object public string shortname; - static init() + static RooRepo init() { if (_RooRepo == null) { _RooRepo = new RooRepo(); RooRepo.load(); } + return _RooRepo; } static Gee.ArrayList _repos; // only available for singletonn.