From d27dcc52ef890842e718213570ebee1bacc8b37e Mon Sep 17 00:00:00 2001 From: incog Date: Fri, 30 May 2025 23:11:09 +1000 Subject: [PATCH] changed plugin list to not clear every time the tab is opened added manual refresh button --- src/Interface/Tabs/PluginList.as | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Interface/Tabs/PluginList.as b/src/Interface/Tabs/PluginList.as index d454af0..9b2fc58 100644 --- a/src/Interface/Tabs/PluginList.as +++ b/src/Interface/Tabs/PluginList.as @@ -56,8 +56,9 @@ class PluginListTab : Tab void StartRequest() { - Clear(); - StartRequestForPage(0); + if (m_pageCount == 0) { + StartRequestForPage(0); + } } void StartRequestForPage(int page) @@ -170,6 +171,11 @@ class PluginListTab : Tab return; } + if (UI::Button(Icons::Repeat + " Refresh")) { + Clear(); + StartRequestForPage(0); + } + if (Setting_ViewStyle == ViewStyle::Rows) { if (UI::BeginTable("Plugins", 3, UI::TableFlags::RowBg)) { UI::TableSetupColumn("##Image", UI::TableColumnFlags::WidthFixed, 95 * UI::GetScale()); @@ -193,6 +199,12 @@ class PluginListTab : Tab } } + if (m_request !is null && !m_request.Finished() && m_pageCount > 0) { + UI::PushFont(g_fontBold); + UI::Text("\\$7f7Loading more items...\\$z"); + UI::PopFont(); + } + // Handle automatic page loading bool haveMorePages = m_page + 1 < m_pageCount; bool waitedLongEnough = m_lastPageRequestFinished + 500 < Time::Now;