QoL: exclude handy model dir from recent list (#11934)
Some checks are pending
Build all / Build Linux (push) Waiting to run
Build all / Build Non-Linux (push) Waiting to run
Build all / Unit Tests (push) Blocked by required conditions
Build all / Flatpak (push) Waiting to run

* Enhance backward compatibility for filament extruder variants in 3MF project files
Fix crashes when loading old 3MF project

* QoL: add handy models directory to ignore list
This commit is contained in:
SoftFever 2026-01-13 09:40:55 +08:00 committed by GitHub
parent ccb7416a6d
commit e173ad8df1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -170,6 +170,9 @@ const std::string& sys_shapes_dir();
// Return a full path to the custom shapes gallery directory.
std::string custom_shapes_dir();
// Return a full path to the handy models directory.
std::string handy_models_dir();
// Set a path with shapes gallery files.
void set_custom_gcodes_dir(const std::string &path);
// Return a full path to the system shapes gallery directory.

View file

@ -295,6 +295,11 @@ std::string custom_shapes_dir()
return (boost::filesystem::path(g_data_dir) / "shapes").string();
}
std::string handy_models_dir()
{
return (boost::filesystem::path(resources_dir()) / "handy_models").string();
}
static std::atomic<bool> debug_out_path_called(false);
std::string debug_out_path(const char *name, ...)
@ -1028,7 +1033,7 @@ bool is_gallery_file(const std::string &path, char const* type)
bool is_shapes_dir(const std::string& dir)
{
return dir == sys_shapes_dir() || dir == custom_shapes_dir();
return dir == sys_shapes_dir() || dir == custom_shapes_dir() || dir == handy_models_dir();
}
} // namespace Slic3r