disable sleep whilst downloading, uploading, using usb, inside ftp menu.

This commit is contained in:
ITotalJustice
2025-05-20 23:33:51 +01:00
parent cf908d63b9
commit a67171e2b8
7 changed files with 42 additions and 3 deletions

View File

@@ -151,6 +151,8 @@ Menu::Menu() : MenuBase{"FTP Install (EXPERIMENTAL)"_i18n} {
App::DisplayInstallOptions(false);
}});
App::SetAutoSleepDisabled(true);
mutexInit(&m_mutex);
m_was_ftp_enabled = App::GetFtpEnable();
if (!m_was_ftp_enabled) {
@@ -182,6 +184,7 @@ Menu::~Menu() {
App::SetFtpEnable(false);
}
App::SetAutoSleepDisabled(false);
log_write("closing data!!!!\n");
}