Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src-tauri/src/commands/web_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,13 @@ pub async fn create_host_device_pairing(
)
.await
.map_err(|error| AppError::Internal(error.to_string()))?;
// A device that pairs expects to find this Host again after a restart.
if let Ok(mut config) = load_config().await
&& !config.auto_start
{
config.auto_start = true;
save_config(&config).await?;
}
let host_id = load_or_create_host_id().await?;
let addresses = {
let runtime = WEB_SERVICE_RUNTIME.lock().await;
Expand Down
Loading