fix race condition in ui/gcd vs cwtch app start #234

Merged
sarah merged 1 commits from :peerRace into master 2019-11-06 20:37:13 +00:00
1 changed files with 3 additions and 1 deletions

View File

@ -506,8 +506,10 @@ func (this *GrandCentralDispatcher) setLocale(locale string) {
func (this *GrandCentralDispatcher) onActivate() { func (this *GrandCentralDispatcher) onActivate() {
log.Debugln("onActivate") log.Debugln("onActivate")
if the.CwtchApp != nil {
the.CwtchApp.QueryACNStatus() the.CwtchApp.QueryACNStatus()
} }
}
func (this *GrandCentralDispatcher) SetLocale_helper(locale string) { func (this *GrandCentralDispatcher) SetLocale_helper(locale string) {
core.QCoreApplication_RemoveTranslator(this.Translator) core.QCoreApplication_RemoveTranslator(this.Translator)