Enhancements

Refresh cron schedule after loading TOML preferences (#629).
Keep line order of Plugin section in Loon configs.
This commit is contained in:
Tindy X committed 2023-10-08 02:57:56 +08:00
1 parent c3e8e88fb6
commit 3cb07c3325
2 files changed
+2

No files matched your search

+1
View File
@@ -718,6 +718,7 @@ void readTOMLConf(toml::value &root)
auto tasks = toml::find_or<std::vector<toml::value>>(root, "tasks", {});
importItems(tasks, "tasks", false);
global.cronTasks = toml::get<CronTaskConfigs>(toml::value(tasks));
refresh_schedule();
const auto &section_server = toml::find(root, "server");