Skip to content

Commit bab4bfa

Browse files
committed
Add synchronized keyword to filter button callback
1 parent 116590a commit bab4bfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OpenBCI_GUI/TopNav.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class TopNav {
347347
private void createFiltersButton(String text, int _x, int _y, int _w, int _h, PFont font, int _fontSize, color _bg, color _textColor) {
348348
filtersButton = createTNButton("filtersButton", text, _x, _y, _w, _h, font, _fontSize, _bg, _textColor);
349349
filtersButton.onRelease(new CallbackListener() {
350-
public void controlEvent(CallbackEvent theEvent) {
350+
public synchronized void controlEvent(CallbackEvent theEvent) {
351351
if (!filterUIPopupIsOpen) {
352352
FilterUIPopup filtersUI = new FilterUIPopup();
353353
}

0 commit comments

Comments
 (0)