Skip to content

progressbardialog: improvements#14513

Merged
Frenzie merged 4 commits into
koreader:masterfrom
benoit-pierre:pr/progressbardialog_improvements
Nov 28, 2025
Merged

progressbardialog: improvements#14513
Frenzie merged 4 commits into
koreader:masterfrom
benoit-pierre:pr/progressbardialog_improvements

Conversation

@benoit-pierre

@benoit-pierre benoit-pierre commented Oct 26, 2025

Copy link
Copy Markdown
Member

This change is Reviewable

@benoit-pierre benoit-pierre changed the title progressbardialog improvements progressbardialog: improvements Oct 26, 2025
@Frenzie Frenzie requested a review from poire-z October 26, 2025 15:15
@Frenzie Frenzie added this to the 2025.10 milestone Oct 26, 2025
UIManager:close(self)
end
end
ProgressbarDialog.onAnyKeyPressed = ProgressbarDialog.onDismiss

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don’t we normally add an id = “close” instead? I’m not sure we any all buttons to close it, also aren’t the continue and cancel buttons inverted? Cancel is usually on the left

Comment thread frontend/ui/widget/container/inputcontainer.lua
Comment on lines +219 to +225
ok_text = _("Cancel"),
ok_callback = function()
self.dismiss_box = nil
UIManager:close(self)
end,
cancel_text = _("Continue"),
cancel_callback = function()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree with @Commodore64user observation:

also aren’t the continue and cancel buttons inverted? Cancel is usually on the left

but I guess it's on purpose : continue = cancel the dismiss :) ok = do dismiss. May be some small comment explaining that will make us not stop on it and wonder :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, so tapping outside the confirmation dialog cancel the cancellation. But I went and changed the buttons so "Cancel" is on the left (and disabled dismissing the confirmation so you can't dismiss the confirmation and cancel the operation by tapping elsewhere).

@Frenzie Frenzie modified the milestones: 2025.10, 2025.12 Oct 31, 2025
@benoit-pierre benoit-pierre force-pushed the pr/progressbardialog_improvements branch from 9636767 to b015e72 Compare November 10, 2025 11:20
@benoit-pierre benoit-pierre force-pushed the pr/progressbardialog_improvements branch from b015e72 to 1021dbd Compare November 26, 2025 21:05
@Frenzie

Frenzie commented Nov 26, 2025

Copy link
Copy Markdown
Member

@poire-z Were you okay with it?

@poire-z poire-z left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, fine with it.

Comment thread frontend/ui/widget/container/inputcontainer.lua
@benoit-pierre benoit-pierre force-pushed the pr/progressbardialog_improvements branch from 1021dbd to d007c9a Compare November 27, 2025 22:57
@Frenzie Frenzie merged commit 60a4757 into koreader:master Nov 28, 2025
4 checks passed
@benoit-pierre benoit-pierre deleted the pr/progressbardialog_improvements branch November 28, 2025 09:12
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.

4 participants