Fixed bug where ComboBox didn't match current effect
Fixed a bug where the GUI ComboBox value would sometimes not match the effect being displayed. This bug sometimes occurs when the GUI is first initialized. This change now ensures that the ComboBox value is correctly initialized.
This commit is contained in:
parent
c725d395be
commit
46b404120f
@ -277,6 +277,7 @@ if __name__ == '__main__':
|
|||||||
def effect_change():
|
def effect_change():
|
||||||
global visualization_effect
|
global visualization_effect
|
||||||
visualization_effect = effect_combobox.value()
|
visualization_effect = effect_combobox.value()
|
||||||
|
effect_combobox.setValue(visualization_effect)
|
||||||
effect_combobox.currentIndexChanged.connect(effect_change)
|
effect_combobox.currentIndexChanged.connect(effect_change)
|
||||||
GUI.layout.addWidget(effect_combobox)
|
GUI.layout.addWidget(effect_combobox)
|
||||||
# Initialize LEDs
|
# Initialize LEDs
|
||||||
|
Loading…
Reference in New Issue
Block a user