nextcloud-desktop.git
5 years agoMinor fix in text of warning and debug message.
Camila [Tue, 18 Aug 2020 11:30:15 +0000 (13:30 +0200)]
Minor fix in text of warning and debug message.

Signed-off-by: Camila <hello@camila.codes>
5 years agoMake sure we don't assert when calling fileStatus
Kevin Ottens [Tue, 18 Aug 2020 08:23:52 +0000 (10:23 +0200)]
Make sure we don't assert when calling fileStatus

It happens that sometimes we leak a directory path ending with a slash,
but that violates fileStatus' precondition so let's catch it early and
skip such path.

Of course the right fix would be a larger swipe in the sync engine and
around it to not use naked strings anymore but rely on the typesystem.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 18 Aug 2020 03:34:45 +0000 (03:34 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 17 Aug 2020 03:28:12 +0000 (03:28 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 16 Aug 2020 03:28:22 +0000 (03:28 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2271 from ivaradi/cstdint-fix
István Váradi [Sat, 15 Aug 2020 12:35:01 +0000 (14:35 +0200)]
Merge pull request #2271 from ivaradi/cstdint-fix

Include cstdint only when compiling C++ code

5 years agoMerge branch 'master' into cstdint-fix
István Váradi [Sat, 15 Aug 2020 10:56:13 +0000 (12:56 +0200)]
Merge branch 'master' into cstdint-fix

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 15 Aug 2020 03:29:02 +0000 (03:29 +0000)]
[tx-robot] updated from transifex

5 years agoInclude cstdint only when compiling C++ code
István Váradi [Thu, 13 Aug 2020 19:16:06 +0000 (21:16 +0200)]
Include cstdint only when compiling C++ code

Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 14 Aug 2020 03:44:39 +0000 (03:44 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2268 from nextcloud/cherry_pick_testchunkingng_related_improvements
Kevin Ottens [Thu, 13 Aug 2020 15:26:33 +0000 (17:26 +0200)]
Merge pull request #2268 from nextcloud/cherry_pick_testchunkingng_related_improvements

Cherry pick TestChunkingNG related improvements

5 years agoSize cleanups in TestChunkingNG
Kevin Ottens [Wed, 12 Aug 2020 16:38:57 +0000 (18:38 +0200)]
Size cleanups in TestChunkingNG

Some of the comments didn't match the size or were missing. This also
means reducing one of the 150 MB payloads left behind reducing the
execution time by a few more seconds. This is now around 30s execution
time which is more acceptable.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoUpload: Store the size in the UploadInfo, and compare it when resolving potential...
Olivier Goffart [Fri, 29 Jun 2018 08:43:01 +0000 (10:43 +0200)]
Upload: Store the size in the UploadInfo, and compare it when resolving potential conflict

This is about the conflicts that happens when the file has been uploaded
correctly to the server, but the etag was not recieved because the connection
was closed before we got the reply.

We used to compare only the mtime when comparing the uploaded file and the
existing file.  However, to be perfectly correct, we also should check the
size.

This was found because TestChunkingNG::connectionDroppedBeforeEtagRecieved is
flaky. Example of faillure found in https://drone.owncloud.com/owncloud/client/481/5
while testing PR #6626

(very trimmed log:)

06-29 07:58:02:015 [ info sync.csync.csync ]: ## Starting local discovery ##
06-29 07:58:02:016 [ info sync.csync.updater ]: Database entry found, compare: 1530259082 <-> 1530259051, etag:  <-> 1644a8c8750, inode: 1935629 <-> 1935629, size: 301 <-> 300, perms: 0 <-> ff, type: 0 <-> 0, checksum:  <-> SHA1:cc9adedebe27a6259efb8d6ed09f4f2eff559ad1, ignore: 0
06-29 07:58:02:016 [ info sync.csync.updater ]: file: A/a0, instruction: INSTRUCTION_EVAL <<=
06-29 07:58:02:972 [ warning sync.networkjob ]: QNetworkReply::NetworkError(OperationCanceledError) "Connection timed out" QVariant(Invalid)
.. next sync...
06-29 07:58:02:980 [ info sync.engine ]: #### Discovery start ####################################################
06-29 07:58:02:981 [ info sync.csync.csync ]: ## Starting local discovery ##
06-29 07:58:02:983 [ info sync.csync.updater ]: Database entry found, compare: 1530259082 <-> 1530259051, etag:  <-> 1644a8c8750, inode: 1935629 <-> 1935629, size: 302 <-> 300, perms: 0 <-> ff, type: 0 <-> 0, checksum:  <-> SHA1:cc9adedebe27a6259efb8d6ed09f4f2eff559ad1, ignore: 0
06-29 07:58:02:983 [ info sync.csync.updater ]: file: A/a0, instruction: INSTRUCTION_EVAL <<=
06-29 07:58:02:985 [ info sync.csync.csync ]: ## Starting remote discovery ##
06-29 07:58:02:985 [ info sync.networkjob ]: OCC::LsColJob created for "http://localhost/owncloud" + "" "OCC::DiscoverySingleDirectoryJob"
06-29 07:58:02:987 [ info sync.csync.updater ]: Database entry found, compare: 1530259082 <-> 1530259051, etag: 1644a8c8b26 <-> 1644a8c8750, inode: 0 <-> 1935629, size: 301 <-> 300, perms: ff <-> ff, type: 0 <-> 0, checksum: SHA1:5adcdac9608ae0811247f07f4cf1ab0a2ef99154 <-> SHA1:cc9adedebe27a6259efb8d6ed09f4f2eff559ad1, ignore: 0
06-29 07:58:02:987 [ info sync.csync.updater ]: file: A/a0, instruction: INSTRUCTION_EVAL <<=
06-29 07:58:02:989 [ info sync.csync.csync ]: Update detection for remote replica took 0.004 seconds walking 13 files
06-29 07:58:02:990 [ info sync.engine ]: #### Discovery end ####################################################  9 ms
06-29 07:58:02:990 [ info sync.database ]: Updating file record for path: "A/a0" inode: 1935629 modtime: 1530259082 type: 0 etag: "1644a8c8b26" fileId: "16383ea4" remotePerm: "WDNVCKR" fileSize: 301 checksum: "SHA1:cc9adedebe27a6259efb8d6ed09f4f2eff559ad1"
06-29 07:58:02:990 [ info sync.csync.reconciler ]: INSTRUCTION_UPDATE_METADATA    client file: A/a0
06-29 07:58:02:990 [ info sync.csync.csync ]: Reconciliation for local replica took  0 seconds visiting  13  files.
06-29 07:58:02:990 [ info sync.csync.reconciler ]: INSTRUCTION_UPDATE_METADATA    server dir:  A
06-29 07:58:02:990 [ info sync.csync.csync ]: Reconciliation for remote replica took  0 seconds visiting  13  files.
06-29 07:58:02:990 [ info sync.engine ]: #### Reconcile end ####################################################  9 ms
06-29 07:58:02:990 [ info sync.database ]: Updating local metadata for: "A/a0" 1530259082 302 1935629
FAIL!  : TestChunkingNG::connectionDroppedBeforeEtagRecieved(small file) '!fakeFolder.syncOnce()' returned FALSE. ()

5 years agoTestChunkingNG: Make it faster
Olivier Goffart [Wed, 18 Jul 2018 13:46:30 +0000 (15:46 +0200)]
TestChunkingNG: Make it faster

Use smaller files so the test run faster.
Particulary usefull for TestChunkingNG::connectionDroppedBeforeEtagRecieved
Which had become so much slower after 2638332dc63cd79410b6fea5a24449696d63d3f2
increased the timeout for bigger files

5 years agoUpload: Add more chunk resuming unit tests #6405
Christian Kamm [Tue, 17 Apr 2018 07:58:57 +0000 (09:58 +0200)]
Upload: Add more chunk resuming unit tests #6405

5 years agoMerge pull request #2269 from nextcloud/enable_modernize_loop_convert
Kevin Ottens [Thu, 13 Aug 2020 14:37:41 +0000 (16:37 +0200)]
Merge pull request #2269 from nextcloud/enable_modernize_loop_convert

Enable the modernize-loop-convert check on clang-tidy

5 years agoEnable the modernize-loop-convert check on clang-tidy
Kevin Ottens [Thu, 13 Aug 2020 10:23:02 +0000 (12:23 +0200)]
Enable the modernize-loop-convert check on clang-tidy

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoRemove unused method
Kevin Ottens [Thu, 13 Aug 2020 12:23:18 +0000 (14:23 +0200)]
Remove unused method

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoEnable the modernize-deprecated-headers check on clang-tidy
Kevin Ottens [Thu, 13 Aug 2020 11:00:56 +0000 (13:00 +0200)]
Enable the modernize-deprecated-headers check on clang-tidy

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoEnable the modernize-use-equals-default check on clang-tidy
Kevin Ottens [Wed, 12 Aug 2020 15:19:49 +0000 (17:19 +0200)]
Enable the modernize-use-equals-default check on clang-tidy

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 13 Aug 2020 03:30:50 +0000 (03:30 +0000)]
[tx-robot] updated from transifex

5 years agoEnable the modernize-user-nullptr check on clang-tidy
Kevin Ottens [Wed, 12 Aug 2020 14:14:48 +0000 (16:14 +0200)]
Enable the modernize-user-nullptr check on clang-tidy

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMerge pull request #2264 from nextcloud/enable_modernize_use_using
Kevin Ottens [Wed, 12 Aug 2020 17:29:17 +0000 (19:29 +0200)]
Merge pull request #2264 from nextcloud/enable_modernize_use_using

Enable the modernize-use-using check on clang-tidy

5 years agoGet rid of useless using constructs
Kevin Ottens [Wed, 12 Aug 2020 16:06:57 +0000 (18:06 +0200)]
Get rid of useless using constructs

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMake QTokenizer use simpler by having optional second parameter
Kevin Ottens [Wed, 12 Aug 2020 15:56:22 +0000 (17:56 +0200)]
Make QTokenizer use simpler by having optional second parameter

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoEnable the modernize-use-using check on clang-tidy
Kevin Ottens [Wed, 12 Aug 2020 13:23:11 +0000 (15:23 +0200)]
Enable the modernize-use-using check on clang-tidy

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMerge pull request #2262 from nextcloud/enable_trivial_clang_tidy_modernize_checks
Kevin Ottens [Wed, 12 Aug 2020 15:16:38 +0000 (17:16 +0200)]
Merge pull request #2262 from nextcloud/enable_trivial_clang_tidy_modernize_checks

Enable "trivial" modernize clang-tidy checks

5 years agoEnable "trivial" modernize clang-tidy checks
Kevin Ottens [Wed, 12 Aug 2020 09:22:16 +0000 (11:22 +0200)]
Enable "trivial" modernize clang-tidy checks

This is a bunch of modernize checks which we don't hit at all. This is
an easy win and also make sure those old constructs won't creep up
behind our back.

Note that some of them won't trigger until we bump our C++ baseline
standard to C++17. But I'd say that's OK, that'll force our hand to do
those C++17 related cleanups when the time comes.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMerge pull request #2037 from nextcloud/enable_modernize_raw_string_literal
Kevin Ottens [Wed, 12 Aug 2020 13:02:55 +0000 (15:02 +0200)]
Merge pull request #2037 from nextcloud/enable_modernize_raw_string_literal

Enable modernize raw string literal

5 years agoWe don't really need two \ here
Kevin Ottens [Thu, 4 Jun 2020 12:09:21 +0000 (14:09 +0200)]
We don't really need two \ here

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoAdd more raw string literals missed previously
Kevin Ottens [Thu, 4 Jun 2020 12:09:06 +0000 (14:09 +0200)]
Add more raw string literals missed previously

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMerge pull request #2247 from nextcloud/improve_drone_config
Kevin Ottens [Wed, 12 Aug 2020 07:45:26 +0000 (09:45 +0200)]
Merge pull request #2247 from nextcloud/improve_drone_config

Improve drone config

5 years agoMake sure wget looks for the certificates at the right place
Kevin Ottens [Tue, 11 Aug 2020 12:10:27 +0000 (14:10 +0200)]
Make sure wget looks for the certificates at the right place

Might happen because we got too many copies of OpenSSL around

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoSwitch to Ninja for the clang build
Kevin Ottens [Thu, 6 Aug 2020 11:25:23 +0000 (13:25 +0200)]
Switch to Ninja for the clang build

Clang is generally slower to compile than GCC so use a faster Make for
that build variant. This also allows us to verify our CMake files don't
do anything Make specific.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoParallelize the clang-tidy runs
Kevin Ottens [Thu, 6 Aug 2020 11:25:05 +0000 (13:25 +0200)]
Parallelize the clang-tidy runs

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoSplit cmake and compile into separate pipeline steps
Kevin Ottens [Thu, 6 Aug 2020 08:47:09 +0000 (10:47 +0200)]
Split cmake and compile into separate pipeline steps

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoSwitch to actual commands inside of the steps
Kevin Ottens [Thu, 6 Aug 2020 08:43:37 +0000 (10:43 +0200)]
Switch to actual commands inside of the steps

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoSplit the CI pipelines into proper steps
Kevin Ottens [Thu, 6 Aug 2020 07:25:46 +0000 (09:25 +0200)]
Split the CI pipelines into proper steps

Will make it easier to navigate the logs

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoNow make sure we're not picking up generated headers
Kevin Ottens [Thu, 6 Aug 2020 06:49:17 +0000 (08:49 +0200)]
Now make sure we're not picking up generated headers

This could happen (and started to happen more with clang-tidy 10) that
clang-tidy picked up errors in headers from the build directory. Now
that we moved the build directory out of source, we can simply filter
headers based on the pwd.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMove the build in a volume to be reused between steps
Kevin Ottens [Wed, 5 Aug 2020 22:20:59 +0000 (00:20 +0200)]
Move the build in a volume to be reused between steps

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoRemove unneeded environment variables
Kevin Ottens [Wed, 5 Aug 2020 22:29:32 +0000 (00:29 +0200)]
Remove unneeded environment variables

Those are set by the base CI image anyway, no need to do the work again.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoSwitch to the newer base CI image
Kevin Ottens [Wed, 5 Aug 2020 22:14:27 +0000 (00:14 +0200)]
Switch to the newer base CI image

We can now spare building QtKeychain over and over shortening a bit the
build. We also update to latest gcc and clang.

Note that I didn't switch the AppImage pipeline to the newer image to
keep the binary compatibility promise required by linuxdeployqt.
Probably would make sense to do a specific image for AppImage with some
other of the cleanups I did there (in particular to avoid building
qtkeychain every time).

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoParallelize the CI build
Kevin Ottens [Wed, 5 Aug 2020 22:01:12 +0000 (00:01 +0200)]
Parallelize the CI build

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 12 Aug 2020 03:30:27 +0000 (03:30 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2258 from nextcloud/have_a_way_to_display_e2ee_mnemonic
Kevin Ottens [Tue, 11 Aug 2020 13:11:40 +0000 (15:11 +0200)]
Merge pull request #2258 from nextcloud/have_a_way_to_display_e2ee_mnemonic

Keep the E2EE info message around to allow displaying mnemonic

5 years agoKeep the E2EE info message around to allow displaying mnemonic
Kevin Ottens [Tue, 11 Aug 2020 12:55:51 +0000 (14:55 +0200)]
Keep the E2EE info message around to allow displaying mnemonic

We lost the ability to display the E2EE mnemonic during the GUI
redesign and the info message wasn't displayed again on restart. So now
we display it every time, it still can be dismissed and the button text
is different in such a case to make the intent clearer.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 11 Aug 2020 03:30:03 +0000 (03:30 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2255 from nextcloud/restore_e2ee_old_key_storage_format_compatibility
Kevin Ottens [Mon, 10 Aug 2020 14:07:06 +0000 (16:07 +0200)]
Merge pull request #2255 from nextcloud/restore_e2ee_old_key_storage_format_compatibility

Restore E2EE old key storage format compatibility

5 years agoAdd support for BASE64 encoded '|' when decrypting
Kevin Ottens [Mon, 10 Aug 2020 10:45:32 +0000 (12:45 +0200)]
Add support for BASE64 encoded '|' when decrypting

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMove the private key salt handling in its own function
Kevin Ottens [Mon, 10 Aug 2020 09:26:52 +0000 (11:26 +0200)]
Move the private key salt handling in its own function

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoIgnore the salt part of the key during decryption
Kevin Ottens [Mon, 10 Aug 2020 09:19:20 +0000 (11:19 +0200)]
Ignore the salt part of the key during decryption

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoRestore the symmetry between *StringSymmetric functions
Kevin Ottens [Mon, 10 Aug 2020 09:08:15 +0000 (11:08 +0200)]
Restore the symmetry between *StringSymmetric functions

If we receive data without base64 encoding for encryption, it makes
sense to get it without base64 encoding out of decryption.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoAdd unit tests for the encryption helpers
Kevin Ottens [Mon, 10 Aug 2020 09:01:49 +0000 (11:01 +0200)]
Add unit tests for the encryption helpers

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 9 Aug 2020 03:29:44 +0000 (03:29 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 8 Aug 2020 03:31:51 +0000 (03:31 +0000)]
[tx-robot] updated from transifex

5 years agoMaster is now what will become 3.1
Kevin Ottens [Thu, 6 Aug 2020 12:28:09 +0000 (14:28 +0200)]
Master is now what will become 3.1

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 7 Aug 2020 03:32:17 +0000 (03:32 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2248 from nextcloud/bump_version_to_3.0
Kevin Ottens [Thu, 6 Aug 2020 12:25:00 +0000 (14:25 +0200)]
Merge pull request #2248 from nextcloud/bump_version_to_3.0

There won't be a 2.7, this is called 3.0 instead

5 years agoThere won't be a 2.7, this is called 3.0 instead
Kevin Ottens [Thu, 6 Aug 2020 11:40:00 +0000 (13:40 +0200)]
There won't be a 2.7, this is called 3.0 instead

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 6 Aug 2020 03:31:10 +0000 (03:31 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 5 Aug 2020 08:58:21 +0000 (08:58 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 5 Aug 2020 08:53:47 +0000 (08:53 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 5 Aug 2020 03:31:20 +0000 (03:31 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2245 from nextcloud/fix-issue-2243
Kevin Ottens [Tue, 4 Aug 2020 16:54:55 +0000 (18:54 +0200)]
Merge pull request #2245 from nextcloud/fix-issue-2243

Fix #2243

5 years agoRemove extra check for talk app on server in AccountState.
Camila [Mon, 3 Aug 2020 17:48:33 +0000 (19:48 +0200)]
Remove extra check for talk app on server in AccountState.

- Remove repeated hard coded "spreed" string.

Signed-off-by: Camila <hello@camila.codes>
5 years agoFix #2243: use server url instead of hard coded string.
Camila [Mon, 3 Aug 2020 17:00:45 +0000 (19:00 +0200)]
Fix #2243: use server url instead of hard coded string.

Signed-off-by: Camila <hello@camila.codes>
5 years agoMake sure we always have a CLSID when Explorer integration is used
Kevin Ottens [Mon, 3 Aug 2020 15:09:08 +0000 (17:09 +0200)]
Make sure we always have a CLSID when Explorer integration is used

We update properly the CLSID of folders to integrate them with the
Explorer pane when they are added or removed from the GUI. That said,
there might be cases of users adding folders to sync straight from the
GUI. In such a case the CLSID might be missing on config load so now we
assign one on the fly when that happens.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 4 Aug 2020 03:30:42 +0000 (03:30 +0000)]
[tx-robot] updated from transifex

5 years agoWindows: Enable CFG and SafeSEH linker security flags
Michael Schuster [Fri, 31 Jul 2020 21:51:28 +0000 (23:51 +0200)]
Windows: Enable CFG and SafeSEH linker security flags

See:
https://docs.microsoft.com/en-us/windows/win32/secbp/control-flow-guard
https://docs.microsoft.com/en-us/cpp/build/reference/safeseh-image-has-safe-exception-handlers

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoAlways show Settings in the context menu (amends #2164)
Michael Schuster [Fri, 31 Jul 2020 22:17:25 +0000 (00:17 +0200)]
Always show Settings in the context menu (amends #2164)

The context menu should allow access to the Settings even when no accounts are configured.

Users may specify proxy / startup / update and other settings at any time.

This slipped through in #2164.

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 3 Aug 2020 03:31:51 +0000 (03:31 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 2 Aug 2020 03:30:48 +0000 (03:30 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 1 Aug 2020 03:30:21 +0000 (03:30 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 31 Jul 2020 03:31:56 +0000 (03:31 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 30 Jul 2020 03:31:15 +0000 (03:31 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 29 Jul 2020 03:32:53 +0000 (03:32 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2227 from nextcloud/support_png_for_branded_clients_systray
Kevin Ottens [Tue, 28 Jul 2020 10:06:03 +0000 (12:06 +0200)]
Merge pull request #2227 from nextcloud/support_png_for_branded_clients_systray

Support png for branded clients systray

5 years agoUse PNGs for branded clients
Kevin Ottens [Mon, 27 Jul 2020 15:34:42 +0000 (17:34 +0200)]
Use PNGs for branded clients

For branded clients try to load a png of the right size, for unbranded
clients use the SVGs. If something fails at load time skip it.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMove the svg rendering part in a lambda
Kevin Ottens [Thu, 23 Jul 2020 17:06:09 +0000 (19:06 +0200)]
Move the svg rendering part in a lambda

This simplifies the loop body a bit, opening the door to what's next.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoExtract the svg renderer from the loop
Kevin Ottens [Thu, 23 Jul 2020 17:04:26 +0000 (19:04 +0200)]
Extract the svg renderer from the loop

No need to recreate it each time for nothing.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoBranded clients have more size variety for their icons
Kevin Ottens [Thu, 23 Jul 2020 16:48:59 +0000 (18:48 +0200)]
Branded clients have more size variety for their icons

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoSwitch to for range loop
Kevin Ottens [Thu, 23 Jul 2020 16:43:57 +0000 (18:43 +0200)]
Switch to for range loop

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoLet Theme tell us if we're branded or not
Kevin Ottens [Thu, 23 Jul 2020 15:55:38 +0000 (17:55 +0200)]
Let Theme tell us if we're branded or not

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoAdd OpacityMask to fix mouse hover on round corner.
Camila [Mon, 27 Jul 2020 15:27:23 +0000 (17:27 +0200)]
Add OpacityMask to fix mouse hover on round corner.

- Fix for #2173.
- Removed the workaround for the left round corner which was also
fixed with the OpacityMask.

Signed-off-by: Camila <hello@camila.codes>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 28 Jul 2020 03:30:52 +0000 (03:30 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 26 Jul 2020 03:28:55 +0000 (03:28 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 25 Jul 2020 03:29:52 +0000 (03:29 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 24 Jul 2020 03:31:38 +0000 (03:31 +0000)]
[tx-robot] updated from transifex

5 years agoLet context menu open wizard if there are no accounts
Stephan Beyer [Mon, 6 Jul 2020 21:17:33 +0000 (23:17 +0200)]
Let context menu open wizard if there are no accounts

The context menu offers to open the main dialog and the settings
even if no accounts are configured.  In this case, the main dialog
is useless and the settings are probably confusing.  Hence, this
commit replaces these actions in the context menu by an action
to open the wizard (which also opens on left click, so this is
the most natural thing to do).

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 23 Jul 2020 03:32:46 +0000 (03:32 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2224 from nextcloud/qt-5.12.9-update
Michael Schuster [Wed, 22 Jul 2020 13:21:48 +0000 (15:21 +0200)]
Merge pull request #2224 from nextcloud/qt-5.12.9-update

Update CI for Qt 5.12.9

5 years agoUpdate CI for Qt 5.12.9
Michael Schuster [Wed, 22 Jul 2020 01:28:06 +0000 (03:28 +0200)]
Update CI for Qt 5.12.9

Also remove the jq package installation from the AppImage build script because
the package is included in the new Docker image (see nextcloud/docker-ci#231).

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 22 Jul 2020 03:31:25 +0000 (03:31 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2209 from nextcloud/fix-pause-sync-states
Kevin Ottens [Tue, 21 Jul 2020 11:12:39 +0000 (13:12 +0200)]
Merge pull request #2209 from nextcloud/fix-pause-sync-states

Fix pause sync states

5 years agosigh, too
Dominique Fuchs [Tue, 21 Jul 2020 10:44:45 +0000 (12:44 +0200)]
sigh, too

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
5 years agoGet a const auto for the FolderMap to iterate over
Dominique Fuchs [Tue, 21 Jul 2020 09:44:52 +0000 (11:44 +0200)]
Get a const auto for the FolderMap to iterate over

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
5 years agoReplaced Qt foreach by C++11 ranged for loop
Dominique Fuchs [Mon, 20 Jul 2020 17:55:57 +0000 (19:55 +0200)]
Replaced Qt foreach by C++11 ranged for loop

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
5 years agoProperly set syncPause state on Systray creation when account init is done
Dominique Fuchs [Fri, 17 Jul 2020 13:18:03 +0000 (15:18 +0200)]
Properly set syncPause state on Systray creation when account init is done

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
5 years agoFixed copy/paste bug, resulting in a wrong signal ::pauseSync used instead of ::resum...
Dominique Fuchs [Fri, 17 Jul 2020 12:56:02 +0000 (14:56 +0200)]
Fixed copy/paste bug, resulting in a wrong signal ::pauseSync used instead of ::resumeSync

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
5 years agoFix Windows installer graphics files for 2.7
Michael Schuster [Mon, 20 Jul 2020 14:53:32 +0000 (16:53 +0200)]
Fix Windows installer graphics files for 2.7

For some reason the exported bitmaps in #2211 were not properly saved in the right
format for display by the NSIS installer system.

Signed-off-by: Michael Schuster <michael@schuster.ms>