walmis / VPforce-TelemFFB

DCS FFB Telemetry Effects (for VPforce FFB)
GNU General Public License v3.0
49 stars 13 forks source link

Clear setting button moves layout #23

Closed RoyMudie closed 9 months ago

RoyMudie commented 10 months ago

Modifying a setting adds the "clear settings" button to the right hand side. However, because this button is added and removed to the interface, rather than hidden/shown, the interface moves which is a little distracting.

Suggest that the buttons are setVisible(False) / setVisible(True) rather than the widget physically removed/added.

mjfrisby commented 10 months ago

this is a tricky one since a "not visible" widget is equivalent to a non-existent widget in terms of layouts.

was able to leverage style sheets (to set transparent color) and hide the pixmap icon when the button is "disabled", so it appears to be gone.