Skip to content

Commit

Permalink
Popup: fixed displaying of ok button for mode InfoConfirm
Browse files Browse the repository at this point in the history
  • Loading branch information
mfs12 committed Apr 21, 2023
1 parent 9e884d6 commit 93cc780
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UI/Popup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ void AlertPopup::Set(const char *title, const char *text, int32_t mode, uint32_t

closeButton->Show(mode == Alert::Mode::InfoClose);

okButton->Show(mode == Alert::Mode::ConfirmCancel ||
okButton->Show(mode == Alert::Mode::InfoConfirm ||
mode == Alert::Mode::ConfirmCancel ||
mode == Alert::Mode::NumberInt ||
mode == Alert::Mode::NumberFloat ||
mode == Alert::Mode::Text);
Expand Down

0 comments on commit 93cc780

Please sign in to comment.