This commit is contained in:
sunsets
2023-07-28 15:09:44 +08:00
parent bcfcfdf58d
commit 0503b60f30
2 changed files with 8 additions and 5 deletions

View File

@@ -377,9 +377,12 @@ void PresetComboBox::add_physical_printer()
void PresetComboBox::open_physical_printer_url()
{
const PhysicalPrinter& pp = m_preset_bundle->physical_printers.get_selected_printer();
std::string host = pp.config.opt_string("print_host");
const PhysicalPrinter &pp = m_preset_bundle->physical_printers.get_selected_printer();
std::string host = pp.config.opt_string("print_host");
assert(!host.empty());
// B31
if (host.find(":10088") == -1)
host = host + ":10088";
wxGetApp().open_browser_with_warning_dialog(host);
}