If I have 2+ fonts open, running Glyphs.redraw(), it raises this error:
File "GlyphsApp/GlyphsApp/__init__.py", line 1661, in __GSApp_redraw__
objc.error: NSGenericException - The window has been marked as needing another Display Window pass, but it has already had more Display Window passes than there are views in the window.
A snipped for testing:
from vanilla import Window
class A():
def __init__(self):
self.w = Window((500, 500), '')
self.w.open()
self.w.bind('close', self.remove_callbacks)
Glyphs.addCallback(self.draw_foreground, DRAWFOREGROUND)
def remove_callbacks(self, sender):
Glyphs.removeCallback(self.draw_foreground, DRAWFOREGROUND)
def draw_foreground(self, event1, event2):
Glyphs.redraw()
A()
I figured I can redraw just the tab, but reporting the error just in case