mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-17 05:15:42 -07:00
QoL: exclude handy model dir from recent list (#11934)
* 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:
parent
ccb7416a6d
commit
e173ad8df1
2 changed files with 9 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue