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

PathChooser: fix calling Folder shortcuts #11367

Merged
merged 2 commits into from Jan 26, 2024

Conversation

hius07
Copy link
Member

@hius07 hius07 commented Jan 16, 2024

To reproduce the bug:
-open Folder shortcuts
-press the Plus icon to add a shortcut
-in PathChooser long-press the Home icon
-press Folder shortcuts button
-close Folder shortcuts, close PathChooser
-press a shortcut
Folder shortcuts window remains open.


This change is Reviewable

@Frenzie Frenzie added this to the 2024.02 milestone Jan 16, 2024
@@ -117,15 +115,15 @@ function PathChooser:onMenuHold(item)
if self.detailed_file_info then
local filesize = util.getFormattedSize(attr.size)
local lastmod = os.date("%Y-%m-%d %H:%M", attr.modification)
title = T(_("Choose this file?\n\n%1\n\nFile size: %2 bytes\nLast modified: %3"),
title = T(_("Choose this file?\n\n%1\n\nFile size: %2 bytes\nLast modified: %3\n"),
Copy link
Member

Choose a reason for hiding this comment

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

It's better to append all of these. Not only in general so as not to bother the translators with random newlines before or after, but especially here since these strings are already translated in their current form. (In reverse I'm open to it, i.e., changing a \n at the end to an appended \n.)

@Frenzie Frenzie merged commit 38a14ff into koreader:master Jan 26, 2024
3 checks passed
@hius07 hius07 deleted the PathChooser-folder-shortcuts branch January 27, 2024 07:50
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

3 participants