From 8da8e9bee1ddec8c0660827e080ce15cf27d9852 Mon Sep 17 00:00:00 2001 From: Ian Chua Date: Wed, 23 Sep 2026 20:12:18 +0800 Subject: [PATCH] fix: persist input printer host and port --- src/slic3r/GUI/ReleaseNote.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/ReleaseNote.cpp b/src/slic3r/GUI/ReleaseNote.cpp index b691aabcb5..e90e22384b 100644 --- a/src/slic3r/GUI/ReleaseNote.cpp +++ b/src/slic3r/GUI/ReleaseNote.cpp @@ -1866,6 +1866,11 @@ void InputIpAddressDialog::on_ok(wxMouseEvent& evt) if (wxGetApp().preset_bundle) { auto& config = wxGetApp().preset_bundle->printers.get_edited_preset().config; + std::string port; + Http::get_host_from_url(str_ip, &port); + config.opt_string("print_host") = str_ip; + if (!port.empty()) + config.opt_string("printhost_port") = port; if (Http::ca_file_supported()) config.opt_string("printhost_cafile") = m_input_cafile->GetValue().ToStdString(); }