Your issue is that it processes so fast that when you set SettingsTrigger to 1, it is being 'touched' so it starts the 2nd fade.
Instead of checking for SettingTrigger = 1, check for the Opacity of one of the buttons to be 0. This way it will only trigger if the
options are hidden.
Instead of checking for SettingTrigger = 0, check for the Opacity of one of the buttons to be 100. This will only trigger once the options are visible. You could also check for >0 if you wanted to allow them to close them before they are 'fully open'.
Hope that helps. I can send it to you if you like.