mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-23 20:22:04 +00:00
FIX: something
1. split translate filament_extruder_variant 2. printer sync icon dark mode 3. translate Extruder 1/2 to Left/Right Extruder 4. parse error code from get_camera_url 5. smaller printer bed image Jira: STUDIO-8542, STUDIO-9056, STUDIO-7681, STUDIO-9487 Change-Id: I8a10fbe4e6d17e7a3e35e8846e3d964084d07f50 (cherry picked from commit 626256beb6fb8a90a99578b5208cb588ead5dd80) (cherry picked from commit 9c81c2cf5e0e50a65c99903445734e0f16529198)
This commit is contained in:
@@ -353,6 +353,11 @@ void MediaPlayCtrl::Play()
|
||||
if (m_last_state == MEDIASTATE_INITIALIZING) {
|
||||
if (url.empty() || !boost::algorithm::starts_with(url, "bambu:///")) {
|
||||
m_failed_code = 3;
|
||||
if (boost::ends_with(url, "]")) {
|
||||
size_t n = url.find_last_of('[');
|
||||
if (n != std::string::npos)
|
||||
m_failed_code = std::atoi(url.substr(n + 1, url.length() - n - 2).c_str());
|
||||
}
|
||||
Stop(_L("Connection Failed. Please check the network and try again"), from_u8(url));
|
||||
} else {
|
||||
m_url = url;
|
||||
|
||||
Reference in New Issue
Block a user