Skip to content

Commit

Permalink
added transition for situations where the camera was not able to trig…
Browse files Browse the repository at this point in the history
…ger correctly (focus not found mainly)
  • Loading branch information
ClemensElflein committed Mar 27, 2020
1 parent e5cc1b0 commit c68df41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/logic/BoothLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ FILTER BoothLogic::getFilter() {
case 1:
return BASIC_FILTER;
}
return NO_FILTER;
}

bool BoothLogic::isStopped() {
Expand Down
8 changes: 7 additions & 1 deletion src/ui/BoothGui.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,13 @@ namespace selfomat {
}

void notifyPreviewIncoming() override {
setState(STATE_TRANS_PRINT_PREV1);
if(currentState == STATE_BLACK) {
// We're before the final image but we get a new preview - there seems to be an error.
// Go fade to live
setState(STATE_TRANS_PREV2_PREV3);
} else {
setState(STATE_TRANS_PRINT_PREV1);
}
}

void showAgreement() override;
Expand Down

0 comments on commit c68df41

Please sign in to comment.