# HG changeset patch # User Edouard Tisserant # Date 1631277860 -7200 # Node ID 2c0511479b187bb1c815af16e044b3bb81126c75 # Parent d73af2eeea0597e9bc46b7e2557a17d450eae0e3 IDE/windows: Avoid exception on quit caused by runtime being killed without disconnecting. diff -r d73af2eeea05 -r 2c0511479b18 BeremizIDE.py --- a/BeremizIDE.py Fri Sep 10 14:42:46 2021 +0200 +++ b/BeremizIDE.py Fri Sep 10 14:44:20 2021 +0200 @@ -625,6 +625,7 @@ if self.CTR is None or self.CheckSaveBeforeClosing(_("Close Application")): if self.CTR is not None: self.CTR.KillDebugThread() + self.CTR._Disconnect() self.KillLocalRuntime() self.SaveLastState() diff -r d73af2eeea05 -r 2c0511479b18 svghmi/svghmi.py --- a/svghmi/svghmi.py Fri Sep 10 14:42:46 2021 +0200 +++ b/svghmi/svghmi.py Fri Sep 10 14:44:20 2021 +0200 @@ -292,14 +292,19 @@ return ret +if wx.Platform == '__WXMSW__': + browser_launch_cmd="cmd.exe /c 'start msedge {url}'" +else: + browser_launch_cmd="chromium {url}" + class SVGHMI(object): XSD = """ - - - + + + @@ -331,7 +336,7 @@ - """ + """%browser_launch_cmd EditorType = SVGHMIEditor