Skip to content

Moving download all and remove all buttons in OPDS download menu#14024

Merged
hius07 merged 6 commits into
koreader:masterfrom
Volterxien:download_menu
Jul 12, 2025
Merged

Moving download all and remove all buttons in OPDS download menu#14024
hius07 merged 6 commits into
koreader:masterfrom
Volterxien:download_menu

Conversation

@Volterxien

@Volterxien Volterxien commented Jul 5, 2025

Copy link
Copy Markdown
Contributor

As discussed in #13946
Adds button in download list to do download all and remove all. Currently, both options remain when selecting individual books. I think it should be completely moved to the top left but I understand there being a reason for wanting to keep it where it is and duplicate.


This change is Reviewable

Comment thread plugins/opds.koplugin/opdsbrowser.lua Outdated
title_bar_fm_style = true,
onMenuSelect = self.showDownloadListItemDialog,
_manager = self,
title_bar_left_icon = "plus",

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.

I think, the "menu" icon is more appropriate here.
Also, as I wrote regarding the server list window, in the root catalog - "menu", in subcatalogs - "plus".

Comment thread plugins/opds.koplugin/opdsbrowser.lua Outdated
title_bar_left_icon = "plus",
onLeftButtonTap = function()
self:showDownloadListMenu()
end

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.

comma

@hius07

hius07 commented Jul 6, 2025

Copy link
Copy Markdown
Member

What do you think about the buttons order in the new menu?
In the popup dialog we usually put more dangerous buttons at the left, and more frequently used at the right.
In this new vertical menu, which item should be the first: Download or Remove?

@Volterxien

Copy link
Copy Markdown
Contributor Author

My thought was that the more commonly used item (download) should be closer to the center of the screen. I think there's an argument that user's finger will be nearest the top to open this menu so the download button would be closer, but I feel my use case would have my finger drift back towards the center personally

@hius07

hius07 commented Jul 7, 2025

Copy link
Copy Markdown
Member

You can put all the menu in the center, not anchored.
"Remove" as the first (main) action looks a little bit uncomfortable.

@poire-z

poire-z commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

but I feel my use case would have my finger drift back towards the center personally

(The question was not about where to put most used menu items, center or right: we already made that decision: to the right :) (thinking about right handed people using the device with one hand). It was about what are the most often used items, so they can be put on the right.)

@Volterxien

Copy link
Copy Markdown
Contributor Author

How do we feel about this
image

@hius07

hius07 commented Jul 7, 2025

Copy link
Copy Markdown
Member

I think that the button labels are clear and do not need any description.
If you feel that the centered ButtonTable without the title is small, keep it anchored, just put "Download all" first.

@Volterxien

Copy link
Copy Markdown
Contributor Author

My main concern was the size, yeah. I can revert to the original and switch the order no problem!

@Volterxien

Copy link
Copy Markdown
Contributor Author

I could also leave it as above and have no text, if that would be more appealing

Comment thread plugins/opds.koplugin/opdsbrowser.lua Outdated
self:showDownloads(item)
else -- catalog or Search item
self.title_bar_left_icon = "plus"
Menu.init(self)

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.

It's expensive, we have setTitleBarLeftIcon method.

Comment thread plugins/opds.koplugin/opdsbrowser.lua Outdated
self.item_table[1].mandatory = #self.downloads
self:updateItems(1, true)
end
self:init()

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.

What for?

Comment thread plugins/opds.koplugin/opdsbrowser.lua Outdated
})
end
self:switchItemTable(self.catalog_title, menu_table)
Menu.setTitleBarLeftIcon(self, "plus")

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.

Usual notation with self: should work I think.

Comment thread plugins/opds.koplugin/opdsbrowser.lua Outdated
self.root_catalog_password = item.password
self.root_catalog_raw_names = item.raw_names
end
-- UIManager:forceRePaint()

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.

Leftover?

@hius07 hius07 merged commit 655ba58 into koreader:master Jul 12, 2025
4 checks passed
@hius07 hius07 added the OPDS label Jul 12, 2025
@hius07 hius07 added this to the 2025.06 milestone Jul 12, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants