mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
fix read file (#2070)
This commit is contained in:
parent
2acefee4d2
commit
6d9d5ad1af
@ -59,7 +59,7 @@ ReconSetupViewMain::ReconSetupViewMain(NavigationView& nav, Rect parent_rect, st
|
|||||||
auto open_view = nav.push<FileLoadView>(".TXT");
|
auto open_view = nav.push<FileLoadView>(".TXT");
|
||||||
open_view->push_dir(freqman_dir);
|
open_view->push_dir(freqman_dir);
|
||||||
open_view->on_changed = [this, &nav](std::filesystem::path new_file_path) {
|
open_view->on_changed = [this, &nav](std::filesystem::path new_file_path) {
|
||||||
if (new_file_path.native().find(freqman_dir.native()) == 0) {
|
if (new_file_path.native().find((u"/" / freqman_dir).native()) == 0) {
|
||||||
_input_file = new_file_path.stem().string();
|
_input_file = new_file_path.stem().string();
|
||||||
text_input_file.set(_input_file);
|
text_input_file.set(_input_file);
|
||||||
} else {
|
} else {
|
||||||
@ -72,7 +72,7 @@ ReconSetupViewMain::ReconSetupViewMain(NavigationView& nav, Rect parent_rect, st
|
|||||||
auto open_view = nav.push<FileLoadView>(".TXT");
|
auto open_view = nav.push<FileLoadView>(".TXT");
|
||||||
open_view->push_dir(freqman_dir);
|
open_view->push_dir(freqman_dir);
|
||||||
open_view->on_changed = [this, &nav](std::filesystem::path new_file_path) {
|
open_view->on_changed = [this, &nav](std::filesystem::path new_file_path) {
|
||||||
if (new_file_path.native().find(freqman_dir.native()) == 0) {
|
if (new_file_path.native().find((u"/" / freqman_dir).native()) == 0) {
|
||||||
_output_file = new_file_path.stem().string();
|
_output_file = new_file_path.stem().string();
|
||||||
button_choose_output_name.set_text(_output_file);
|
button_choose_output_name.set_text(_output_file);
|
||||||
} else {
|
} else {
|
||||||
|
@ -338,7 +338,7 @@ ScannerView::ScannerView(
|
|||||||
auto open_view = nav.push<FileLoadView>(".TXT");
|
auto open_view = nav.push<FileLoadView>(".TXT");
|
||||||
open_view->push_dir(freqman_dir);
|
open_view->push_dir(freqman_dir);
|
||||||
open_view->on_changed = [this, &nav](std::filesystem::path new_file_path) {
|
open_view->on_changed = [this, &nav](std::filesystem::path new_file_path) {
|
||||||
if (new_file_path.native().find(freqman_dir.native()) == 0) {
|
if (new_file_path.native().find((u"/" / freqman_dir).native()) == 0) {
|
||||||
scan_pause();
|
scan_pause();
|
||||||
frequency_file_load(new_file_path);
|
frequency_file_load(new_file_path);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user