feat: enhance profile update logic to include auto-update option handling

This commit is contained in:
Tunglies
2025-10-18 17:36:42 +08:00
parent c2d7bf296a
commit 8e20b1b0a0
2 changed files with 11 additions and 5 deletions

View File

@@ -264,7 +264,9 @@ impl Timer {
if let Some(items) = Config::profiles().await.latest_ref().get_items() {
for item in items.iter() {
if let Some(option) = item.option.as_ref()
&& let Some(allow_auto_update) = option.allow_auto_update
&& let (Some(interval), Some(uid)) = (option.update_interval, &item.uid)
&& allow_auto_update
&& interval > 0
{
logging!(