shell: quick toggle types come from the chooser, not a second list
The hand-written allowlist in AndroidQuickPanel had drifted from it, so the phone rendered 12 of its 17 configured toggles and said nothing about the rest. Adds the missing fullScreenshot and waydroidTerminate, and a deploy guard so the phone chooser can't fall behind the base one again.
This commit is contained in:
parent
e4e659483b
commit
e6e3dd3b2a
8 changed files with 248 additions and 1 deletions
|
|
@ -433,6 +433,30 @@ if (( qmldir_broken )); then
|
|||
echo "manifest above, or remove its qmldir line." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# The phone's quick-toggle chooser is a WHOLE-FILE override of the base one, so
|
||||
# a choice added to the base never reaches the phone unless it is added there
|
||||
# too. That drift is silent by construction: the panel derives what it can build
|
||||
# from the chooser, so a missing choice is not an error, it is a toggle that
|
||||
# quietly stops existing on one device. Base must be a subset of phone.
|
||||
#
|
||||
# This is the same class as the qmldir check above and it has already cost a
|
||||
# session: five configured toggles rendered nothing for a day because a second
|
||||
# enumeration had drifted from this one.
|
||||
chooser_rel="modules/ii/sidebarRight/quickToggles/androidStyle/AndroidToggleDelegateChooser.qml"
|
||||
base_chooser="$SRC/ii-base/$chooser_rel"
|
||||
phone_chooser="$SRC/ii-phone/$chooser_rel"
|
||||
if [[ -f "$base_chooser" && -f "$phone_chooser" ]]; then
|
||||
role_values() { grep -o 'roleValue: "[A-Za-z]*"' "$1" | sed 's/.*"\(.*\)"/\1/' | sort -u; }
|
||||
missing_on_phone="$(comm -23 <(role_values "$base_chooser") <(role_values "$phone_chooser") | tr '\n' ' ')"
|
||||
if [[ -n "${missing_on_phone// /}" ]]; then
|
||||
echo "BROKEN toggle chooser overlay: ii-phone is missing base choices: $missing_on_phone" >&2
|
||||
echo "The phone chooser overrides the base file wholesale — add the same" >&2
|
||||
echo "DelegateChoice blocks to ii-phone/$chooser_rel or those toggles will" >&2
|
||||
echo "silently not exist on the phone." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if grep -q 'qsConfig", "ii"' "$HOME/.config/hypr/hyprland/variables.lua" 2>/dev/null; then
|
||||
echo "NOTE: hyprland qsConfig is still 'ii' — flip variables.lua to 'souveraine' to switch."
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue