Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix - missing ok button in dialogs #1751

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

harshad1
Copy link
Collaborator

@harshad1 harshad1 commented Jul 7, 2022

This fixes a bug I introduced recently where the ok button would not show up on dialogs simply asking for ok / cancel on a message

Comment on lines +271 to +273
final boolean isSearchOk = dopt.callback != null && dopt.isSearchEnabled;
final boolean isMultiSelOk = dopt.positionCallback != null && dopt.isMultiSelectEnabled;
final boolean isPlainDialog = dopt.callback != null && (dopt.data == null || dopt.data.size() == 0);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar to the filemanager button calculations. very good improvement and to understand when reading it

@gsantner gsantner added this to the Markor v2.10 milestone Jul 8, 2022
@gsantner gsantner merged commit dbbca3e into gsantner:master Jul 8, 2022
@gsantner gsantner mentioned this pull request Jul 16, 2022
@harshad1 harshad1 deleted the bugfix_missing_ok_button branch May 10, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants