eckhchri / pcars-ds-liveview

Provides a html page for project cars dedicated server and display a map of the current race.
14 stars 1 forks source link

Cannot disable Livery Image in not-pcars2 APIMODEs, if switched APIMODE from a pcars2 mode to a not-pcars2 mode #161

Open viper4gh opened 4 years ago

viper4gh commented 4 years ago

If you had a pcars2 APIMODE active where the Livery features are available and there was a drivertable row marked with visible livery image, and then you switch to a not-pcars2 APIMODE, you cannot hide the livery image by deselect a driver table row anymore.

viper4gh commented 4 years ago

The Livery Image is now set to hidden if the APIMODE is switched via dropdown menu event handler. The only problem: it takes a moment till the API switch is finished, in case the new APIMODE can not reach the API, it takes several seconds. During this time the drivertable with all drivers is still there and you can select a driver again, which shows the Livery Image again. And then it is still there in the new APIMODE.