RooRepo.vala
authorAlan Knowles <alan@roojs.com>
Mon, 24 Dec 2018 07:21:42 +0000 (15:21 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 24 Dec 2018 07:21:42 +0000 (15:21 +0800)
RooRepo.vala

index 4444662..8dfbfb0 100644 (file)
@@ -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<RooRepo> _repos; // only available for singletonn.