diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2020-05-16 23:01:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-16 23:01:00 +0200 |
| commit | a308db7ae152626c84ade069e307864a7e7e6213 (patch) | |
| tree | 3af8a13562021796743378d16a1e7cc725ac75e4 /lib/extensions/simulator.py | |
| parent | 4e950332419743dcbaf661fdda1f7c7970241d93 (diff) | |
support svg objects (#643)
Diffstat (limited to 'lib/extensions/simulator.py')
| -rw-r--r-- | lib/extensions/simulator.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/extensions/simulator.py b/lib/extensions/simulator.py index 1c0627ba..66be752b 100644 --- a/lib/extensions/simulator.py +++ b/lib/extensions/simulator.py @@ -9,6 +9,8 @@ class Simulator(InkstitchExtension): InkstitchExtension.__init__(self) def effect(self): + if not self.get_elements(): + return api_server = APIServer(self) port = api_server.start_server() electron = open_url("/simulator?port=%d" % port) |
