mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Save language preset.
* Added global variable g_local_dir to get "localization" directory. * Chage/Set language works correctly now. * Probably, fixed work on Linux
This commit is contained in:
parent
d18a200b0f
commit
badeb2f64c
7 changed files with 60 additions and 38 deletions
|
@ -103,9 +103,16 @@ const std::string& resources_dir()
|
|||
return g_resources_dir;
|
||||
}
|
||||
|
||||
std::string localization_dir()
|
||||
static std::string g_local_dir;
|
||||
|
||||
void set_local_dir(const std::string &dir)
|
||||
{
|
||||
return resources_dir() + "\\localization\\";
|
||||
g_local_dir = dir;
|
||||
}
|
||||
|
||||
const std::string& localization_dir()
|
||||
{
|
||||
return g_local_dir;
|
||||
}
|
||||
|
||||
static std::string g_data_dir;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue