You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/04/18 23:43:54 UTC
[groovy] branch master updated: avoid accessing all properties to
see if frame has title set
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 622d4d0 avoid accessing all properties to see if frame has title set
622d4d0 is described below
commit 622d4d0f75ae76f685045c14d5b03b801baace22
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Apr 19 09:43:42 2019 +1000
avoid accessing all properties to see if frame has title set
---
subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy b/subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy
index d5531ba..a426bac 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/ui/Console.groovy
@@ -1548,7 +1548,7 @@ class Console implements CaretListener, HyperlinkListener, ComponentListener, Fo
}
void updateTitle() {
- if (frame.properties.containsKey('title')) {
+ if (frame.title) {
String title = 'GroovyConsole'
if (indy) {
title += ' (Indy)'