Skip to content

Commit

Permalink
Fix autoplay status being inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
korfuri committed Apr 19, 2019
1 parent e5aa386 commit f0815b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ struct ProjectMWidget : FramebufferWidget {
}

bool isAutoplayEnabled() const {
return pm->isPresetLocked();
return !pm->isPresetLocked();
}

std::list<std::pair<unsigned int, std::string> > listPresets() {
Expand Down Expand Up @@ -202,7 +202,7 @@ struct ToggleAutoplayMenuItem : MenuItem {
}

void step() override {
rightText = (w->isAutoplayEnabled() ? "no" : "yes");
rightText = (w->isAutoplayEnabled() ? "yes" : "no");
MenuItem::step();
}

Expand Down

0 comments on commit f0815b0

Please sign in to comment.