Optimize device

This commit is contained in:
QIDI TECH
2024-09-16 16:22:16 +08:00
parent 5ed1560c59
commit e6b82214e5
9 changed files with 148 additions and 9 deletions

View File

@@ -221,6 +221,13 @@ void AppConfig::set_defaults()
if (get("user_token").empty())
set("user_token", "");
//y5
if(get("user_head_url").empty())
set("user_head_url", "");
if(get("user_head_name").empty())
set("user_head_name", "");
if (get("sending_interval").empty()) {
set("sending_interval", "5");
}

View File

@@ -179,7 +179,8 @@ void PresetBundle::setup_directories()
data_dir / "sla_print",
data_dir / "sla_material",
data_dir / "printer",
data_dir / "physical_printer"
data_dir / "physical_printer",
data_dir / "user" // y5
#endif
};
for (const boost::filesystem::path &path : paths) {
@@ -253,7 +254,8 @@ void PresetBundle::import_newer_configs(const std::string& from)
from_data_dir / "sla_print",
from_data_dir / "sla_material",
from_data_dir / "printer",
from_data_dir / "physical_printer"
from_data_dir / "physical_printer",
from_data_dir / "user" //y5
#endif
};
// copy recursively all files