mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-03 01:18:44 +03:00
add device_button without regex
This commit is contained in:
@@ -2135,9 +2135,10 @@ void MainFrame::select_tab(size_t tab/* = size_t(-1)*/)
|
|||||||
auto * printer = preset_bundle.physical_printers.find_printer(tem_name);
|
auto * printer = preset_bundle.physical_printers.find_printer(tem_name);
|
||||||
if (printer != nullptr) {
|
if (printer != nullptr) {
|
||||||
wxString host = (printer->config.opt_string("print_host"));
|
wxString host = (printer->config.opt_string("print_host"));
|
||||||
|
//B45
|
||||||
std::regex ipRegex(R"(\b(?:\d{1,3}\.){3}\d{1,3}\b)");
|
//std::regex ipRegex(R"(\b(?:\d{1,3}\.){3}\d{1,3}\b)");
|
||||||
bool isValidIPAddress = std::regex_match(host.ToStdString(), ipRegex);
|
//bool isValidIPAddress = std::regex_match(host.ToStdString(), ipRegex);
|
||||||
|
bool isValidIPAddress = true;
|
||||||
DynamicPrintConfig *cfg_t = &(printer->config);
|
DynamicPrintConfig *cfg_t = &(printer->config);
|
||||||
|
|
||||||
wxStringTokenizer tokenizer3((data->lower_name), wxT("*"), wxTOKEN_RET_EMPTY_ALL);
|
wxStringTokenizer tokenizer3((data->lower_name), wxT("*"), wxTOKEN_RET_EMPTY_ALL);
|
||||||
|
|||||||
Reference in New Issue
Block a user