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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user