Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API to enable/disable accounts in account manager #4296

Open
link2xt opened this issue Apr 3, 2023 · 2 comments · May be fixed by #5314
Open

Add API to enable/disable accounts in account manager #4296

link2xt opened this issue Apr 3, 2023 · 2 comments · May be fixed by #5314
Labels
enhancement New feature or request

Comments

@link2xt
Copy link
Collaborator

link2xt commented Apr 3, 2023

In account manager it should be possible to disable accounts in such a way that they are not started when dc_accounts_start_io() is called.

It could be implemented as dc_accounts_enable(account_id: u32, enabled: bool) and dc_accounts_is_account_enabled(account_id: u32) -> bool calls.

Whether account is enabled or not should be written into accounts.toml. #4295 should be fixed before tackling this issue, because otherwise each toggle of account status may fail and corrupt accounts.toml.

@link2xt link2xt added the enhancement New feature or request label Apr 3, 2023
@link2xt
Copy link
Collaborator Author

link2xt commented Jul 25, 2023

Desktop currently has implemented an UI hack that disables background synchronization for all accounts, and this feature is about implementing a per-account switch telling whether the account should be synchronized in background or not.

@link2xt
Copy link
Collaborator Author

link2xt commented Apr 5, 2024

Draft PR: #5314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant