mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-22 18:53:18 +00:00
5ed9bdbc37
* [FL-1652] IRDA: Continuous transmitting * continuous encoding and sending signals by pressing button on menu * fast buttons scrolling in remote menu * bruteforce: stop reading file if progress == 100% * IRDA: .hpp -> .h * [FL-1554] IRDA: xTaskNotify -> osEventsFlagSet * IRDA: some stability fixes * Irda: minor cleanup, api-hal to furi-hal rename. Co-authored-by: あく <alleteam@gmail.com>
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
#include "../irda-app.h"
|
|
|
|
void IrdaAppSceneEditDeleteDone::on_enter(IrdaApp* app) {
|
|
IrdaAppViewManager* view_manager = app->get_view_manager();
|
|
Popup* popup = view_manager->get_popup();
|
|
|
|
popup_set_icon(popup, 0, 2, &I_DolphinMafia_115x62);
|
|
popup_set_text(popup, "Deleted", 83, 19, AlignLeft, AlignBottom);
|
|
|
|
popup_set_callback(popup, IrdaApp::popup_callback);
|
|
popup_set_context(popup, app);
|
|
popup_set_timeout(popup, 1500);
|
|
popup_enable_timeout(popup);
|
|
|
|
view_manager->switch_to(IrdaAppViewManager::ViewType::Popup);
|
|
}
|
|
|
|
bool IrdaAppSceneEditDeleteDone::on_event(IrdaApp* app, IrdaAppEvent* event) {
|
|
bool consumed = false;
|
|
|
|
if(event->type == IrdaAppEvent::Type::PopupTimer) {
|
|
if(app->get_edit_element() == IrdaApp::EditElement::Remote) {
|
|
app->search_and_switch_to_previous_scene(
|
|
{IrdaApp::Scene::Start, IrdaApp::Scene::RemoteList});
|
|
} else {
|
|
app->search_and_switch_to_previous_scene({IrdaApp::Scene::Remote});
|
|
}
|
|
consumed = true;
|
|
}
|
|
|
|
return consumed;
|
|
}
|
|
|
|
void IrdaAppSceneEditDeleteDone::on_exit(IrdaApp* app) {
|
|
}
|