Add an Install > China Apps menu shown only in China

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 00:34:51 -04:00
1 parent 151a530d15
commit 465d4da567
4 files changed
+64 -2

No files matched your search

+2 -1
View File
@@ -292,7 +292,8 @@ assert(!defaultById['install.ai.crush'], 'menu removes Crush from Install > AI')
// any other `when:` here is a row that went back to vanishing once installed.
assertDeepEqual(
defaultItems
.filter(item => item.id.startsWith('install.') && item.action && item.when)
// China Apps rows hide by region, not because the software is there.
.filter(item => item.id.startsWith('install.') && item.action && item.when && item.when !== '[[ "$(omarchy-region)" == "China" ]]')
.map(item => item.id),
['install.service.chromium-account'],
'menu never hides an Install row because the software is already there'