Fix issues when saving folder is not created
Some checks are pending
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linux32 flags:32 name:Linux GCC 32 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linux64 flags:64 name:Linux GCC x64 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linuxarm32 flags:arm32 name:Linux GCC ARM 32 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linuxarm64 flags:arm64 name:Linux GCC ARM 64 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:macos name:macOS Apple Silicon os:macos-14]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:win32 flags:-A Win32 name:Windows VS2022 Win32 os:windows-2022]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:win64 flags:-A x64 name:Windows VS2022 x64 os:windows-2022]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:winarm64 flags:-A ARM64 name:Windows VS2022 ARM os:windows-2022]) (push) Waiting to run
CD / Create Pi Mono Setup (push) Blocked by required conditions
CD / Publishing (push) Blocked by required conditions

This commit is contained in:
Lorenzooone
2024-11-10 04:41:04 +01:00
parent 3b84174212
commit d9df617d51
6 changed files with 62 additions and 39 deletions

View File

@@ -760,18 +760,18 @@ void WindowScreen::setup_fileconfig_menu(bool is_save, bool reset_data, bool ski
this->possible_files.push_back(file_data);
}
file_data.index = STARTUP_FILE_INDEX;
file_data.name = load_layout_name(file_data.index, success);
file_data.name = load_layout_name(file_data.index, success, this->created_proper_folder);
this->possible_files.push_back(file_data);
for(int i = 1; i <= 4; i++) {
file_data.index = i;
file_data.name = load_layout_name(file_data.index, success);
file_data.name = load_layout_name(file_data.index, success, this->created_proper_folder);
this->possible_files.push_back(file_data);
}
int first_free;
bool failed = false;
for(first_free = 5; first_free <= 100; first_free++) {
file_data.index = first_free;
file_data.name = load_layout_name(file_data.index, success);
file_data.name = load_layout_name(file_data.index, success, this->created_proper_folder);
if(!success) {
failed = true;
break;