Skip to content

Conversation

@incogg
Copy link

@incogg incogg commented May 30, 2025

Changed the Plugin List so that it keeps the list loaded when switching tabs
Closes #38
Added a refresh button to manually refresh the list.

Comment on lines 57 to 62
void StartRequest()
{
Clear();
StartRequestForPage(0);
if (m_pageCount == 0) {
StartRequestForPage(0);
}
}
Copy link
Member

Choose a reason for hiding this comment

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

This conditional logic should probably come from CheckStartRequest, not StartRequest. Additionally, only doing this when the page count is 0 feels wrong - why specifically that?

Comment on lines +174 to +178
if (UI::Button(Icons::Repeat + " Refresh")) {
Clear();
StartRequestForPage(0);
}

Copy link
Member

Choose a reason for hiding this comment

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

This is not a very good looking button. We should probably make this look a bit more interesting - maybe it could be displayed as a (smaller) button in the top right corner.


if (m_request !is null && !m_request.Finished() && m_pageCount > 0) {
UI::PushFont(g_fontBold);
UI::Text("\\$7f7Loading more items...\\$z");
Copy link
Member

Choose a reason for hiding this comment

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

No need for the \$z here. We may also not want this to be green, but just a gray instead - we can use UI::TextDisabled for. I also don't think this needs to be bold.

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.

Make the tabs able to keep the current scroll positon when swapping tabs

2 participants