mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: Link Chinese wiki in Chinese environment
jira: STUDIO-10795 Change-Id: I50454a0e4e3f4b6ab8a1d2be8f2dbc4343c6a3e6 (cherry picked from commit a25e7198eec188bf5262f262ca6a100ad56293d4)
This commit is contained in:
@@ -297,7 +297,11 @@ void AMSMaterialsSetting::create_panel_kn(wxWindow* parent)
|
||||
m_ratio_text->Bind(wxEVT_LEAVE_WINDOW, [this](auto& e) {SetCursor(wxCURSOR_ARROW); });
|
||||
|
||||
m_ratio_text->Bind(wxEVT_LEFT_DOWN, [this](auto& e) {
|
||||
wxLaunchDefaultBrowser(wxT("https://wiki.bambulab.com/en/software/bambu-studio/calibration_pa"));
|
||||
std::string language = wxGetApp().app_config->get("language");
|
||||
wxString region = "en";
|
||||
if (language.find("zh") == 0)
|
||||
region = "zh";
|
||||
wxLaunchDefaultBrowser(wxString::Format("https://wiki.bambulab.com/%s/software/bambu-studio/calibration_pa", region));
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user