ianharper / AccuTermClient

Use AccuTerm to interact with a MultiValue server from Sublime Text.
MIT License
4 stars 0 forks source link

Moved the locking & sync check #26

Closed ianharper closed 5 years ago

ianharper commented 5 years ago

Altered the view event listener so the locking update and sync check only happen once the view is activated after loading. Bringing up the file switcher panel was causing the load event to fire which would then steal the view focus when locking was updated. Also the sync check would pop a dialog box if the file was out of sync before the item was selected from the panel.

Now the view event listener sets a flag when the load event is fired that is required by the activate event to check sync & update locks. The activate event un-sets the flag so the functions will only be run once after loading.