mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 10:51:57 +00:00
fix(ui-lvgl): the USB drive offer waits for the lock screen to go, PIN or not
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
b63af9fee1
commit
cf086678aa
@@ -481,9 +481,9 @@ void UITask::usbPoll() {
|
|||||||
restartScreen("The computer has given the SD card back.");
|
restartScreen("The computer has given the SD card back.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Behind a screen PIN the card (message history) isn't offered: a cable
|
// Not over the lock screen (slider or PIN): a cable plugged in while locked
|
||||||
// plugged in while locked is noticed once the PIN is entered.
|
// is noticed once the screen is unlocked.
|
||||||
if (locked() && pinSet()) return;
|
if (locked()) return;
|
||||||
bool host = lvport::usbHost();
|
bool host = lvport::usbHost();
|
||||||
if (host == s_host) return;
|
if (host == s_host) return;
|
||||||
s_host = host;
|
s_host = host;
|
||||||
@@ -501,7 +501,7 @@ void UITask::usbPoll() {
|
|||||||
void UITask::usbTap(bool drive) {
|
void UITask::usbTap(bool drive) {
|
||||||
using namespace usbview;
|
using namespace usbview;
|
||||||
if (s_overlay) { lv_obj_delete_async(s_overlay); s_overlay = nullptr; }
|
if (s_overlay) { lv_obj_delete_async(s_overlay); s_overlay = nullptr; }
|
||||||
if (!drive || (locked() && pinSet())) return;
|
if (!drive || locked()) return;
|
||||||
storeview::stopWalk();
|
storeview::stopWalk();
|
||||||
if (mapview::s_dl.active()) mapDownloadStop();
|
if (mapview::s_dl.active()) mapDownloadStop();
|
||||||
if (!lvport::usbDriveStart()) { showToast("No SD card to share", 3000); return; }
|
if (!lvport::usbDriveStart()) { showToast("No SD card to share", 3000); return; }
|
||||||
|
|||||||
Reference in New Issue
Block a user