close desktop UI if connection lost

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
tmalone
Posts:192
Joined: Mon Nov 22, 2010 11:21 pm

close desktop UI if connection lost

Post by tmalone »

I have looked in the help for a [ui] config entry for this. I am sure I remember that this function exists.

How to make the Desktop UI stop or close if the connection to the server is lost?

Todd Malone

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: close desktop UI if connection lost

Post by leoknipp »

Are you looking for the config-entry fatalDialogSeconds?

Best Regards
Leopold Knipp
Senior Support Specialist

tmalone
Posts:192
Joined: Mon Nov 22, 2010 11:21 pm

Re: close desktop UI if connection lost

Post by tmalone »

that is a cool config entry for the popup.

No, my question is: when the desktop UI looses network connection, it remains open waiting for a response. How can we script or automatically close the UI?

Due to some visualization and other requirements for Train Control, we cannot leave the UI open with any possible bad information visible.

Todd

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: close desktop UI if connection lost

Post by leoknipp »

If you use the config entry
[ui]
fatalDialogSeconds = 0
the UI will stop immediately when the connection to the Event Manager is lost.

Best Regards
Leopold Knipp
Senior Support Specialist

4 posts • Page 1 of 1