forked from MrBesen/lolautoaccept
fix the not working checkboxes
This commit is contained in:
parent
dd01c70230
commit
53d642f507
|
@ -32,7 +32,7 @@ void LolAutoAccept::setChamps(const std::vector<uint32_t>& champs, State s) {
|
|||
}
|
||||
|
||||
void LolAutoAccept::setEnabled(bool b, State s) {
|
||||
if(s >= State::PICK) {
|
||||
if(s > State::PICK) {
|
||||
Log::warn << "setEnabled() called on invalid State";
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -92,10 +92,7 @@ void MainWindow::smitewarntoggled(bool state) {
|
|||
void MainWindow::tabtoggled(Position p, LolAutoAccept::State s, bool state) {
|
||||
Log::info << "checkbox toggled " << state << " position: " << p << " state: " << (int) s;
|
||||
|
||||
if(s == LolAutoAccept::State::LOBBY) {
|
||||
lolaa.setEnabled(state, s);
|
||||
}
|
||||
|
||||
lolaa.setEnabled(state, s);
|
||||
lolaa.reload();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue