fpw / avitab

X-Plane plugin that displays a tablet to aid VR usage
GNU Affero General Public License v3.0
299 stars 58 forks source link

Fix Plane Manual app file browsing initialisation. #190

Closed mjh65 closed 7 months ago

mjh65 commented 8 months ago

This change fixes the bug in the Plane app, which attempts to start the file browser in a subdirectory of the aircraft directory when looking for manuals for the current aircraft.

The browse start directory was being initialised too early, before the aircraft was loaded. This is now done whenever the plane is loaded, so will work correctly if a new plane is selected during a simulation run.

(It is possible (probable?) that I broke this behaviour some long time ago when I was modifying mouse wheel and document scrolling behaviour in multi-page PDF files. I'm slightly surprised that no one has reported the issue before!)