Desktop: fix lock timer after rebooting

This commit is contained in:
gid9798
2023-08-18 11:27:12 +03:00
parent b1b00d4fa7
commit 6330012b1d
2 changed files with 4 additions and 4 deletions

View File

@@ -131,8 +131,9 @@ static bool desktop_custom_event_callback(void* context, uint32_t event) {
DESKTOP_SETTINGS_LOAD(&desktop->settings);
desktop_clock_reconfigure(desktop);
desktop_auto_lock_arm(desktop);
if(!furi_hal_rtc_is_flag_set(FuriHalRtcFlagLock)) {
desktop_auto_lock_arm(desktop);
}
return true;
case DesktopGlobalAutoLock:
if(!loader_is_locked(desktop->loader)) {