Skip to content

Commit

Permalink
Don't use isWave() function from RazerCapability
Browse files Browse the repository at this point in the history
Pretty useless if we just can compare the effect identifier instead.
  • Loading branch information
z3ntu committed Oct 17, 2023
1 parent 7e868f3 commit 2e13550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ledwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void LedWidget::fxComboboxChanged(int index)
}

// Show/hide the wave radiobuttons
if (capability.isWave() == 0) {
if (capability.getIdentifier() != openrazer::RazerEffect::Wave) {
findChild<QRadioButton *>("radiobutton1")->hide();
findChild<QRadioButton *>("radiobutton2")->hide();
} else {
Expand Down

0 comments on commit 2e13550

Please sign in to comment.