diff --git a/src/libslic3r/AppConfig.cpp b/src/libslic3r/AppConfig.cpp index 2732a09cf3..a0de9e1a63 100644 --- a/src/libslic3r/AppConfig.cpp +++ b/src/libslic3r/AppConfig.cpp @@ -336,7 +336,7 @@ void AppConfig::set_defaults() // #endif if (get("allow_ip_resolve").empty()) - set("allow_ip_resolve", "1"); + set_bool("allow_ip_resolve", true); if (get("presets", "filament_colors").empty()) { set_str("presets", "filament_colors", "#F2754E"); diff --git a/src/libslic3r/AppConfig.hpp b/src/libslic3r/AppConfig.hpp index 0e6a6d81a0..42614bd7db 100644 --- a/src/libslic3r/AppConfig.hpp +++ b/src/libslic3r/AppConfig.hpp @@ -81,7 +81,7 @@ public: std::string get(const std::string &key) const { std::string value; this->get("app", key, value); return value; } bool get_bool(const std::string &key) const - { return this->get(key) == "true"; } + { return this->get(key) == "true" || this->get(key) == "1"; } void set(const std::string §ion, const std::string &key, const std::string &value) { #ifndef NDEBUG