mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06:00
FIX: use current_language_code_safe() for valid language
Change-Id: I480730055588aa76bd40f35e6c4bcbe9833c330d
This commit is contained in:
parent
74a1bb8c0f
commit
c5bba1fa85
6 changed files with 9 additions and 24 deletions
|
@ -43,7 +43,7 @@ const std::vector<std::string> license_list = {
|
|||
ProjectPanel::ProjectPanel(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style) : wxPanel(parent, id, pos, size, style)
|
||||
{
|
||||
m_project_home_url = wxString::Format("file://%s/web/model/index.html", from_u8(resources_dir()));
|
||||
std::string strlang = wxGetApp().app_config->get("language");
|
||||
wxString strlang = wxGetApp().current_language_code_safe();
|
||||
if (strlang != "")
|
||||
m_project_home_url = wxString::Format("file://%s/web/model/index.html?lang=%s", from_u8(resources_dir()), strlang);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue