Expose GitHub Sync credentials (username/PAT/repo/branch) via the web UI by moving them into CrossPointSettings, and fix Lockscreen incorrectly triggering on silent internal reboots (File Transfer/OPDS exit) instead of only on real wake/power-on

This commit is contained in:
Sterling Archer
2026-07-16 16:48:49 -07:00
parent fec251f4d1
commit f95ecfca17
4 changed files with 75 additions and 31 deletions
+6 -1
View File
@@ -73,7 +73,12 @@ def get_manifest(ctx):
" {\n"
" const auto lsMode = static_cast<LockscreenMode>(SETTINGS.lockscreenMode);\n"
" const bool hasPinSet = SETTINGS.lockscreenPinHash[0] != '\\0';\n"
" const bool shouldLock = hasPinSet && LockscreenPlugin::shouldLock(lsMode);\n"
" // BootResume::Silent covers internal silentRestart() cycles used to\n"
" // reset WiFi/webserver state (e.g. leaving File Transfer or the OPDS\n"
" // browser) - the user never actually slept, so don't lock for those.\n"
" // QuickResume (waking from sleep) and Splash (real power-on) still lock.\n"
" const bool shouldLock = hasPinSet && resume != BootResume::Silent &&\n"
" LockscreenPlugin::shouldLock(lsMode);\n"
" if (shouldLock) {\n"
" LockscreenActivity lockAct(renderer, mappedInputManager, LockscreenActivity::Purpose::UNLOCK);\n"
" lockAct.onEnter();\n"