diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-07-21 11:30:42 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-07-29 15:45:08 +0200 |
commit | 6b99b6fded94ae1ed8421c624246362e7925fb08 (patch) | |
tree | b65ede7ccc1833714b97fb4036faa377a282a001 /grc/gui/Connection.py | |
parent | 980ab9d2b0455cd0a39730617435774df4af658b (diff) |
grc: refactor: replace get_enabled by prop
Diffstat (limited to 'grc/gui/Connection.py')
-rw-r--r-- | grc/gui/Connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/Connection.py b/grc/gui/Connection.py index 87dd97a520..b6e84f8c89 100644 --- a/grc/gui/Connection.py +++ b/grc/gui/Connection.py @@ -171,7 +171,7 @@ class Connection(Element, _Connection): # draw color1, color2 = ( Colors.HIGHLIGHT_COLOR if self.highlighted else - Colors.CONNECTION_DISABLED_COLOR if not self.get_enabled() else + Colors.CONNECTION_DISABLED_COLOR if not self.enabled else color for color in (self._color, self._color2)) Element.draw(self, widget, cr, color1, Colors.FLOWGRAPH_BACKGROUND_COLOR) |