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

Pause sync when behind a captive portal #11551

Closed
wants to merge 1 commit into from

Conversation

erikjv
Copy link
Collaborator

@erikjv erikjv commented Mar 18, 2024

Fixes: #11533

@erikjv erikjv requested a review from TheOneRing March 18, 2024 15:03
@erikjv erikjv self-assigned this Mar 18, 2024
@@ -104,6 +104,15 @@ bool Utility::internetConnectionIsMetered()
return false;
}

bool OCC::Utility::internetThroughCaptivePortal()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering whether the null pointer check justifies the overhead of moving the code to utils.
In the end it hides the use of QNetworkInformation and can make reading the code in the future more complicated (also the utils class is already quire crowded)
This was also done for internetConnectionIsMetered.

}
}

_ui->pauseSyncWhenBehindCaptivePortalCheckBox->setVisible(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to hide the tls dialog if enabled, I'd also say we need to pause, as util the captive portal is accepted there is no way to sync.

@erikjv erikjv closed this Mar 28, 2024
@erikjv erikjv deleted the work/pause-sync-behind-captive-portal branch March 28, 2024 15:18
@erikjv
Copy link
Collaborator Author

erikjv commented Mar 28, 2024

This is the wrong solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect captive portal and pause sync
2 participants