Skip to content
Snippets Groups Projects
Commit 6952dfc2 authored by pippin's avatar pippin
Browse files

py: do save/restore guarding in view

parent ba75d183
No related branches found
No related tags found
No related merge requests found
......@@ -167,10 +167,14 @@ class ViewManager(Responder):
vt = self._overriden_vt
if self._incoming is not None and self._outgoing is not None:
ctx.save()
vt.draw(ctx, self._transition, self._incoming, self._outgoing)
ctx.restore()
return
if self._incoming is not None:
ctx.save()
self._incoming.draw(ctx)
ctx.restore()
def replace(self, r: View, overide_vt: Optional[ViewTransition] = None) -> None:
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment