Skip to content

Commit 5711294

Browse files
committed
fix: clear filter state from sidebar extension tab
1 parent 481e747 commit 5711294

3 files changed

Lines changed: 12 additions & 17 deletions

File tree

config.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
3838
<application android:networkSecurityConfig="@xml/network_security_config" />
3939
<application android:hardwareAccelerated="true" />
40-
<application android:requestLegacyExternalStorage="true" />
4140
<application android:largeHeap="true" />
4241
<application android:requestLegacyExternalStorage="true"/>
4342
</edit-config>

package-lock.json

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sidebarApps/extensions/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,12 @@ function ListItem({ icon, name, id, version, downloads, installed, source }) {
564564
if (searchInput) {
565565
searchInput.value = "";
566566
$searchResult.content = "";
567+
// Reset filter state when clearing search results
568+
currentFilter = null;
569+
filterCurrentPage = 1;
570+
filterHasMore = true;
571+
isFilterLoading = false;
572+
$searchResult.onscroll = null;
567573
updateHeight($searchResult);
568574
$installed.expand();
569575
}
@@ -650,6 +656,12 @@ async function uninstall(id) {
650656
if (searchInput) {
651657
searchInput.value = "";
652658
$searchResult.content = "";
659+
// Reset filter state when clearing search results
660+
currentFilter = null;
661+
filterCurrentPage = 1;
662+
filterHasMore = true;
663+
isFilterLoading = false;
664+
$searchResult.onscroll = null;
653665
updateHeight($searchResult);
654666
if ($installed.collapsed) {
655667
$installed.expand();

0 commit comments

Comments
 (0)