Merge branch 'master' into fix-issue-3522

This commit is contained in:
abraunegg 2025-11-12 07:34:24 +11:00 committed by GitHub
commit a425826bde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 2 deletions

View file

@ -332,6 +332,17 @@ _**CLI Option Use:**_ `--disable-upload-validation`
> [!CAUTION]
> If you're uploading data to SharePoint or OneDrive Business Shared Folders, you might find it necessary to activate this option. It's important to note that any issues encountered aren't due to a problem with this client; instead, they should be regarded as issues with the Microsoft OneDrive technology stack. Enabling this option disables all upload integrity checks.
### disable_version_check
_**Description:**_ This option determines whether the client will check the GitHub API for the current application version and grace period of running older application versions
_**Value Type:**_ Boolean
_**Default Value:**_ False
_**Config Example:**_ `disable_version_check = "false"` or `disable_version_check = "true"`
_**CLI Option Use:**_ *None - this is a config file option only*
### disable_websocket_support
_**Description:**_ This option disables the built-in WebSocket support that leverages RFC6455 to communicate with the Microsoft Graph API Service, providing near real-time notifications of online changes.

View file

@ -448,6 +448,9 @@ class ApplicationConfig {
// GUI | Display Manager Integration
boolValues["display_manager_integration"] = false;
// Disable GitHub Version check
boolValues["disable_version_check"] = false;
// EXPAND USERS HOME DIRECTORY
// Determine the users home directory.

View file

@ -583,8 +583,10 @@ int main(string[] cliArgs) {
// This needs to be a separate 'if' statement, as, if this was an 'if-else' from above, if we were originally offline and using --monitor, we would never get to this point
if (online) {
// Check Application Version
if (verboseLogging) {addLogEntry("Checking Application Version ...", ["verbose"]);}
checkApplicationVersion();
if (!appConfig.getValueBool("disable_version_check")) {
if (verboseLogging) {addLogEntry("Checking Application Version ...", ["verbose"]);}
checkApplicationVersion();
}
// Initialise the OneDrive API
if (verboseLogging) {addLogEntry("Attempting to initialise the OneDrive API ...", ["verbose"]);}