feat(apk): coche sur la facon d'ouvrir en place + journal du mode detecte

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
r-zakarya
2026-09-17 15:02:16 +01:00
parent 030df48559
commit d6bf06b6a7
2 changed files with 9 additions and 2 deletions
+4 -1
View File
@@ -1657,7 +1657,10 @@ var unlockMode = 'none', canDeviceLock = false, hasContainer = false;
function syncUnlockUi() { function syncUnlockUi() {
['device', 'code', 'password'].forEach(function (m) { ['device', 'code', 'password'].forEach(function (m) {
var id = { device: 'sModeDevice', code: 'sModeCode', password: 'sModePwd' }[m]; var id = { device: 'sModeDevice', code: 'sModeCode', password: 'sModePwd' }[m];
document.getElementById(id).classList.toggle('main', unlockMode === m); var b = document.getElementById(id), on = unlockMode === m;
if (!b.dataset.label) b.dataset.label = b.textContent;
b.textContent = (on ? String.fromCharCode(0x2713) + ' ' : '') + b.dataset.label;
b.classList.toggle('main', on);
}); });
document.getElementById('sModeDevice').style.opacity = canDeviceLock ? 1 : .4; document.getElementById('sModeDevice').style.opacity = canDeviceLock ? 1 : .4;
document.getElementById('sModeNote').textContent = document.getElementById('sModeNote').textContent =
+5 -1
View File
@@ -3099,6 +3099,7 @@ end;
procedure TForm8.PushUnlockMode; procedure TForm8.PushUnlockMode;
var var
LMode: string; LMode: string;
LCan: Boolean;
begin begin
if VaultNeedsPin then if VaultNeedsPin then
begin begin
@@ -3111,8 +3112,11 @@ begin
LMode := 'device' LMode := 'device'
else else
LMode := 'none'; LMode := 'none';
LCan := BiometricAvailable;
Log(Format('Unlock mode: %s, screen lock usable: %s %s',
[LMode, BoolToStr(LCan, True), LastBiometricError]));
WebCall(Format('PM.setUnlockMode("%s", %s, %s)', WebCall(Format('PM.setUnlockMode("%s", %s, %s)',
[LMode, LowerCase(BoolToStr(BiometricAvailable, True)), [LMode, LowerCase(BoolToStr(LCan, True)),
LowerCase(BoolToStr(HasLocalContainer, True))])); LowerCase(BoolToStr(HasLocalContainer, True))]));
end; end;