GalleryDialog: Changes the paths to the system and custom galleries

This commit is contained in:
YuSanka 2021-07-14 17:41:37 +02:00
parent 8f5715b0d7
commit 4257ffddde
18 changed files with 25 additions and 20 deletions

View file

@ -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.