From 8d5b5ff019670d4b09db242aadfd24355a9d8ea6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 1 Nov 2018 21:08:10 +0800 Subject: [PATCH] sync --- GitMonitorQueue.vala | 2 +- GitRepo.vala | 8 ++++---- RooTicket.vala | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/GitMonitorQueue.vala b/GitMonitorQueue.vala index 1af6eca8..7d40d542 100644 --- a/GitMonitorQueue.vala +++ b/GitMonitorQueue.vala @@ -45,7 +45,7 @@ public class GitMonitorQueue : MonitorNamePathDir { // trigger the suggestion to start a new branch - NewBranch.show(this.repo); + NewBranch.signleton().show(this.repo); } diff --git a/GitRepo.vala b/GitRepo.vala index 4e018e54..99b02677 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -26,7 +26,7 @@ public class GitRepo : Object public static GitRepo singleton() { if (_GitRepo == null) { - _GitRepo = new GitRepo(); + _GitRepo = new GitRepo.single(); _GitRepo.cache = new Gee.HashMap(); } return _GitRepo; @@ -137,9 +137,9 @@ public class GitRepo : Object return new GitRepo(path); } - - - + private GitRepo.single() { + // used to create the signleton + } /** * constructor: * diff --git a/RooTicket.vala b/RooTicket.vala index f845baaf..c30925dd 100644 --- a/RooTicket.vala +++ b/RooTicket.vala @@ -7,7 +7,7 @@ static RooTicket _RooTicket; -class RooTicket : Object +public class RooTicket : Object { -- 2.39.2