| 56 | } |
| 57 | |
| 58 | void Config::SetXZZPCBKey(const std::string &keytext) { |
| 59 | try { |
| 60 | XZZPCBKey = std::stoul(keytext, nullptr, 0); |
| 61 | XZZPCBKeyStr = keytext; |
| 62 | } catch (const std::invalid_argument &e) { |
| 63 | |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | void Config::readFromConfig(Confparse &obvconfig) { |
| 68 | // Special test here, in case we've already set the dpi from external |