mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-26 06:24:25 +08:00
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer
This commit is contained in:
commit
84f09df03e
@ -608,7 +608,11 @@ void Choice::BUILD() {
|
|||||||
if (m_is_editable) {
|
if (m_is_editable) {
|
||||||
temp->Bind(wxEVT_KILL_FOCUS, ([this](wxEvent& e) {
|
temp->Bind(wxEVT_KILL_FOCUS, ([this](wxEvent& e) {
|
||||||
e.Skip();
|
e.Skip();
|
||||||
if (m_opt.type == coStrings) return;
|
if (m_opt.type == coStrings) {
|
||||||
|
on_change_field();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
double old_val = !m_value.empty() ? boost::any_cast<double>(m_value) : -99999;
|
double old_val = !m_value.empty() ? boost::any_cast<double>(m_value) : -99999;
|
||||||
if (is_defined_input_value<wxBitmapComboBox>(window, m_opt.type)) {
|
if (is_defined_input_value<wxBitmapComboBox>(window, m_opt.type)) {
|
||||||
if (fabs(old_val - boost::any_cast<double>(get_value())) <= 0.0001)
|
if (fabs(old_val - boost::any_cast<double>(get_value())) <= 0.0001)
|
||||||
|
@ -2948,14 +2948,15 @@ const wxString& Plater::priv::get_project_filename() const
|
|||||||
|
|
||||||
void Plater::priv::set_project_filename(const wxString& filename)
|
void Plater::priv::set_project_filename(const wxString& filename)
|
||||||
{
|
{
|
||||||
wxString copy = filename;
|
std::string copy = into_u8(filename);
|
||||||
if (boost::algorithm::iends_with(copy, ".zip.amf"))
|
if (boost::algorithm::iends_with(copy, ".zip.amf"))
|
||||||
// we remove the .zip part of the extension
|
// we remove the .zip part of the extension
|
||||||
copy = boost::ireplace_last_copy(copy, ".zip.", ".");
|
copy = boost::ireplace_last_copy(copy, ".zip.", ".");
|
||||||
|
|
||||||
// we force 3mf extension
|
// we force 3mf extension
|
||||||
boost::filesystem::path full_path = into_path(copy);
|
boost::filesystem::path full_path(copy);
|
||||||
full_path.replace_extension("3mf");
|
if (!full_path.empty())
|
||||||
|
full_path.replace_extension("3mf");
|
||||||
|
|
||||||
m_project_filename = from_path(full_path);
|
m_project_filename = from_path(full_path);
|
||||||
wxGetApp().mainframe->update_title();
|
wxGetApp().mainframe->update_title();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user