Pause sync for private profiles

This commit is contained in:
2026-05-08 09:32:57 -04:00
parent 3fe2346305
commit 6bf1b674ac
2 changed files with 22 additions and 1 deletions
+6 -1
View File
@@ -52,13 +52,18 @@ pub struct Profile {
impl Profile {
#[must_use]
pub fn new(name: impl Into<String>, color_hex: u32, kind: ProfileKind) -> Self {
let sync_policy = match kind {
ProfileKind::Standard => ProfileSyncPolicy::Enabled,
ProfileKind::Private => ProfileSyncPolicy::Paused,
};
Self {
id: ProfileId::new(),
name: name.into(),
color_hex,
kind,
download_policy: DownloadPolicy::ask_every_time(),
sync_policy: ProfileSyncPolicy::default(),
sync_policy,
}
}