[FL-2356] Infrared: Fix opening files outside app folder #1050

This commit is contained in:
Nikolay Minaylov
2022-03-23 21:51:40 +03:00
committed by GitHub
parent c4a0847c99
commit 46a894bc5c
4 changed files with 33 additions and 24 deletions

View File

@@ -29,7 +29,7 @@ void InfraredAppSceneRemoteList::on_enter(InfraredApp* app) {
last_selected_remote_name);
if(file_select_result) {
if(remote_manager->load(std::string(filename_ts->text))) {
if(remote_manager->load(InfraredApp::infrared_directory, std::string(filename_ts->text))) {
app->switch_to_next_scene(InfraredApp::Scene::Remote);
result = true;
}