1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00

Cosmetic menu changes

This commit is contained in:
Dmitry422
2025-01-17 13:12:20 +07:00
parent fbc29f519f
commit e809e3ddbb
2 changed files with 2 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ static bool desktop_custom_event_callback(void* context, uint32_t event) {
} else if(event == DesktopGlobalAutoLock) { } else if(event == DesktopGlobalAutoLock) {
if(!desktop->app_running && !desktop->locked) { if(!desktop->app_running && !desktop->locked) {
// Disable AutoLock if usb_inhibit_autolock option enabled and device have active USB connection. // Disable AutoLock if usb_inhibit_autolock option enabled and device have active USB session.
if((desktop->settings.usb_inhibit_auto_lock) && (furi_hal_usb_is_locked())) { if((desktop->settings.usb_inhibit_auto_lock) && (furi_hal_usb_is_locked())) {
return (0); return (0);
} }

View File

@@ -136,7 +136,7 @@ void desktop_settings_scene_start_on_enter(void* context) {
// USB connection Inhibit autolock OFF|ON|with opened RPC session // USB connection Inhibit autolock OFF|ON|with opened RPC session
item = variable_item_list_add( item = variable_item_list_add(
variable_item_list, variable_item_list,
"Auto Lock disarm by active USB connection", "Auto Lock disarm by active USB session",
USB_INHIBIT_AUTO_LOCK_DELAY_COUNT, USB_INHIBIT_AUTO_LOCK_DELAY_COUNT,
desktop_settings_scene_start_usb_inhibit_auto_lock_delay_changed, desktop_settings_scene_start_usb_inhibit_auto_lock_delay_changed,
app); app);