mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-05-14 13:28:02 +02:00
feat: teams plan
This commit is contained in:
@@ -2536,6 +2536,9 @@ pub async fn launch_browser_profile(
|
||||
));
|
||||
}
|
||||
|
||||
// Team lock check: if profile is sync-enabled and user is on a team, acquire lock
|
||||
crate::team_lock::acquire_team_lock_if_needed(&profile).await?;
|
||||
|
||||
let browser_runner = BrowserRunner::instance();
|
||||
|
||||
// Store the internal proxy settings for passing to launch_browser
|
||||
@@ -2740,6 +2743,9 @@ pub async fn kill_browser_profile(
|
||||
profile.id
|
||||
);
|
||||
|
||||
// Release team lock if applicable
|
||||
crate::team_lock::release_team_lock_if_needed(&profile).await;
|
||||
|
||||
// Auto-update non-running profiles and cleanup unused binaries
|
||||
let browser_for_update = profile.browser.clone();
|
||||
let app_handle_for_update = app_handle.clone();
|
||||
|
||||
Reference in New Issue
Block a user