Allow server URL to be pre-defined without enforcing it to be used unmodified
authorMichael Schuster <michael@schuster.ms>
Thu, 17 Sep 2020 01:38:35 +0000 (03:38 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Wed, 23 Sep 2020 07:21:35 +0000 (07:21 +0000)
commitce71ffe9f9c78a84a2698c18ff16923ba4230f96
tree6c480352c501285865172524bb7c8743bb05b11e
parent122493eeeb1c1c122294f8d26eac08771a29fe1e
Allow server URL to be pre-defined without enforcing it to be used unmodified

APPLICATION_SERVER_URL can be either empty or be specified. This commit adds the new CMake option APPLICATION_SERVER_URL_ENFORCE to decide whether to enforce the
URL's unmodified use (like before, default: ON) or to allow modification by the user (new).

By default APPLICATION_SERVER_URL_ENFORCE is set to ON, to no break with the previous implementation's expectations.

If APPLICATION_SERVER_URL is empty, APPLICATION_SERVER_URL_ENFORCE will be ignored by the Account Wizard.

The previous behaviour confused me a bit with branded builds. When the URL was (usually) specified but not forced, it was simply discarded, forcing the user to
manually supply it.

Signed-off-by: Michael Schuster <michael@schuster.ms>
NEXTCLOUD.cmake
config.h.in
src/gui/wizard/owncloudsetuppage.cpp
src/libsync/theme.cpp
src/libsync/theme.h