File load path bugfix

This commit is contained in:
furrtek 2018-01-08 04:27:16 +00:00
parent d2ea631fe7
commit d6afd84c66
4 changed files with 3 additions and 3 deletions

View File

@ -44,9 +44,9 @@ void ReplayAppView::on_file_changed(std::filesystem::path new_file_path) {
file_path = new_file_path;
text_filename.set(new_file_path.string().substr(0, 19));
text_filename.set(file_path.filename().string().substr(0, 19));
bbd_file.open("/" + new_file_path.string());
bbd_file.open("/" + file_path.string());
auto file_size = bbd_file.size();
auto duration = (file_size * 1000) / (2 * 2 * sampling_rate / 8);

View File

@ -231,7 +231,7 @@ FileLoadView::FileLoadView(
} else {
nav_.pop();
if (on_changed)
on_changed(entry_list[menu_view.highlighted_index()].entry_path);
on_changed(current_path.string() + '/' + entry_list[menu_view.highlighted_index()].entry_path.string());
}
};
}

Binary file not shown.