Skip to content

Commit df340c2

Browse files
committed
only update graphicsView placeholder on change
- it initializes itself correctly
1 parent 8f38993 commit df340c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎plotdevice/gui/document.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,12 @@ def awakeFromNib(self):
209209

210210
def observeValueForKeyPath_ofObject_change_context_(self, path, obj, change, context):
211211
appearance = change.get('new', change.get('initial'))
212-
self.graphicsView.updatePlaceholder(appearance)
213212
if self.editorView:
214213
self.editorView.superview().setDividerColor_(
215214
NSColor.colorWithWhite_alpha_(1.0, 0.333) if 'Dark' in appearance.name() else NSColor.thinSplitViewDividerColor()
216215
)
216+
if 'new' in change:
217+
self.graphicsView.updatePlaceholder(appearance)
217218

218219

219220
## WindowController duties

0 commit comments

Comments
 (0)