mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
Add configuration option 'disable_version_check'
* Add configuration option 'disable_version_check'
This commit is contained in:
parent
f860744252
commit
67301c5601
3 changed files with 18 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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"]);}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue