fix more runtime errors when simulator closes (#3101)

pull/3106/head
Kaalleen 2024-07-21 10:52:13 +02:00 zatwierdzone przez GitHub
rodzic 44ba93a861
commit c49e8d2f77
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -277,9 +277,12 @@ class DrawingPanel(wx.Panel):
return
if not self.animating:
self.animating = True
self.animate()
self.control_panel.on_start()
try:
self.animating = True
self.animate()
self.control_panel.on_start()
except RuntimeError:
pass
def color_to_pen(self, color):
line_width = global_settings['simulator_line_width'] * PIXELS_PER_MM * self.PIXEL_DENSITY