mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
GalleryDialog: Changes the paths to the system and custom galleries
This commit is contained in:
@@ -175,16 +175,16 @@ const std::string& localization_dir()
|
||||
return g_local_dir;
|
||||
}
|
||||
|
||||
static std::string g_gallery_dir;
|
||||
static std::string g_sys_shapes_dir;
|
||||
|
||||
void set_gallery_dir(const std::string &dir)
|
||||
void set_sys_shapes_dir(const std::string &dir)
|
||||
{
|
||||
g_gallery_dir = dir;
|
||||
g_sys_shapes_dir = dir;
|
||||
}
|
||||
|
||||
const std::string& gallery_dir()
|
||||
const std::string& sys_shapes_dir()
|
||||
{
|
||||
return g_gallery_dir;
|
||||
return g_sys_shapes_dir;
|
||||
}
|
||||
|
||||
// Translate function callback, to call wxWidgets translate function to convert non-localized UTF8 string to a localized one.
|
||||
|
||||
Reference in New Issue
Block a user