Commit Graph

318 Commits

Author SHA1 Message Date
Camila Ayres
4b7ef6eab7
fix(application): add folders after accounts are created during migration.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-07-28 15:23:22 +02:00
Camila Ayres
e591644914 feat: all proxy settings are account specific settings.
The default is to use QNetworkProxy::NoProxy.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-07-16 19:21:37 +02:00
Jyrki Gadinger
d458c2c620 chore: remove never used crashreporter
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-05-08 09:52:53 +02:00
Andy Scherzinger
669bb276a9
docs(reuse): Migrate to SPDX
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-05-07 15:34:52 +02:00
Camila Ayres
b6ab3836eb revert: remove duplicated code when copying legacy config to new path.
This reverts commit a6745bc594.
Fix for #8176.
2025-05-06 09:42:59 +02:00
Camila Ayres
d00b6f42e1 fix: non-void function does not return a value in all control paths.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-04-15 17:07:46 +02:00
Camila Ayres
a6745bc594 chore(migration): remove duplicated code when copying legacy config to new path.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-04-15 17:07:46 +02:00
Claudio Cambra
49bac25415 Use AccountPtr in serverVersionChanged signal instead of raw pointer
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-04-15 17:08:10 +08:00
Jyrki Gadinger
1998d33106 feat: allow overriding the language through the configuration
e.g. this config entry:

```ini
; nextcloud.cfg
[General]
language=de
```

will ensure that the application will always be translated to German.

It's also possible to set the configuration option from the command
line:

```sh
# set the language to German for the next client startup
./nextcloud --set-language de

# set the language to the OS default for the next client startup
./nextcloud --set-language ""
```

partial fix for #111, as this is not a GUI option

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>

# Date:      Mon Mar 31 12:44:55 2025 +0200
#
# On branch feature/enforce-translations
# Your branch and 'origin/feature/enforce-translations' have diverged,
# and have 1 and 1 different commits each, respectively.
#
# Changes to be committed:
#	modified:   src/gui/application.cpp
#	modified:   src/gui/application.h
#	modified:   src/libsync/configfile.cpp
#	modified:   src/libsync/configfile.h
#
# Untracked files:
#	.kateproject.build
#	metainfo.po
#	test.metainfo.xml
#
2025-04-07 15:39:31 +02:00
Jyrki Gadinger
da43f3dfb4 set CFBundleDevelopmentRegion to "en" and set CFBundleAllowMixedLocalizations
according to [1] the value should be a ISO 639-1 code, so let's correct
it

`CFBundleAllowMixedLocalizations` is the most interesting one: with this
being set the reported QLocale will no longer be English as well

(this also bumps the version info to 2025 :D)

[1]: https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundledevelopmentregion

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-26 17:45:02 +01:00
Matthieu Gallien
4544c2f06b use qputenv to modify the running process environment
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-12 09:54:38 +01:00
Camila Ayres
5275a91907 Detect if it is running in a Vmware or being access via RDP to disable graphic acceleration.
There has been reports of the client crashing in a VMware or being accessed via RDP
starting with 3.15.0 due to the client's use of graphic acceleration.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-12 09:54:38 +01:00
Camila Ayres
69b7e054c6 Update the max folder and the max account version.
Improve log output when migrating settings.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-11 10:57:01 +01:00
Camila Ayres
5236b1bc92 Look for previous used application name for config folder.
oldDir => legacyDataDir.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-11 10:57:01 +01:00
Matthieu Gallien
b3886ed1b6 while migrating from another version, clean updater config
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-11 10:57:01 +01:00
Integral
356e4f9296 refactor: replace QString() with QStringLiteral() for better performance
Signed-off-by: Integral <integral@member.fsf.org>
2025-01-31 15:11:02 +01:00
kleifgch
5d36070d15 Call setDesktopFileName without .desktop suffix
As clarified in [1], the method expects to be called without the suffix.

[1] 0c5135a9df

Signed-off-by: kleifgch <81602214+kleifgch@users.noreply.github.com>
2025-01-02 11:57:13 +01:00
Claudio Cambra
fdf0ec5137 Replace use of deprecated QLibraryInfo::location with QLibraryInfo::path
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-12-20 16:26:57 +01:00
Claudio Cambra
30ee3d65ee Ensure use of QMessageBox-using QMessageBox::critical
Fixes deprecation warnings

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

f ensure qmessagebox

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

f2 ensure qm

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

f3

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

f4

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-12-20 16:26:57 +01:00
Claudio Cambra
1009fed86a Replace all uses of qAsConst with std::as_const
Fixes deprecation warnings on Qt 6.8.0

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-12-20 16:26:57 +01:00
Camila Ayres
b095670635
Do not display any notification when import was successful, only log it.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-12-10 18:30:15 +01:00
Matthieu Gallien
1eacbb97bf enable reversed locale layout in QML
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-12-03 11:49:37 +01:00
Matthieu Gallien
62e1f432e1 add include QLocale to fix compilation issue
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-11-22 11:14:38 +01:00
Claudio Cambra
81bd390820 Use first uiLanguage as lang
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-22 11:14:38 +01:00
Claudio Cambra
befc8bff78 Only grab system language from QLocale::system
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-22 11:14:38 +01:00
Claudio Cambra
884f800abc Remove unneeded workaround for dash separated language strings
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-22 11:14:38 +01:00
Camila Ayres
fc6ecf8186
Use slots as slots.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-11-22 10:51:02 +01:00
Matthieu Gallien
1a9ba18661 on Windows 10 follow color scheme changes and apply them
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-11-19 14:09:05 +01:00
Camila Ayres
485a2b6afe On upgrade notification for mass file deletion is disabled by default.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-10-24 14:31:45 +02:00
Matthieu Gallien
8ddf11d960 detect the terms of service app is requiring the user to sign them
will query the sign state for the terms of service and automatically
pause or resume sync

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-10-22 15:03:45 +02:00
Matthieu Gallien
48932ba57b enable dev logs only when NEXTCLOUD_DEV is defined to value 1
will switch back production logs to the intended behavior

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-10-04 12:02:39 +02:00
Matthieu Gallien
e2f94d86ef
create a permanent log of delete actions
will log all deletions with the result of the discovery by the sync
enginre

should enable analyze even long time after such a delete occured

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-10-01 15:43:42 +02:00
Matthieu Gallien
274feb9587 remove deprecated code only usefull for very old Qt releases
we require Qt > 6.0 so any conditionnal code for older releases can be
deleted

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-08-12 11:14:26 +02:00
Claudio Cambra
23a8f0878b
Ensure file provider instance gets initialised at app launch WITHOUT creating a separate instance from expected singleton
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-23 14:08:26 +08:00
Claudio Cambra
83beaf8c80
Move verification job handling and scheduling out of editlocallyjob, into editlocallymanager
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 19:51:38 +08:00
Claudio Cambra
9dfcd876ac
Ensure we are resetting account proxy settings when not using proxy is enforced
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:49 +08:00
Matthieu Gallien
d0b4af6ccc improve logs when build with NEXTCLOUD_DEV enabled
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-05-02 16:34:51 +02:00
Matthieu Gallien
bebb8e1954 fix compilation issues on windows
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
aae9e84438 fix compilation issues after rebase
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
910d7f03e8 when loading translation catalog, do not ignore the return value
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Claudio Cambra
c31e65c111 Remove crashing QRandomGenerator seed call
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-04-26 09:05:12 +02:00
Claudio Cambra
29b0d2b8ad Remove use of QNetworkConfiguration in Qt6
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
d035c26be5 replace qrand/qsrand
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
b712108229 add missing Qt:: namespace when using Qt::endl
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
21464063b6 port away from QDesktopServices::storageLocation
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
2c95775edf allow wipe feature to delete data of a wiped user account
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-03-19 15:58:00 +01:00
Claudio Cambra
a6e3f18168 Ensure FileProvider components instantiated after account setup
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-02-19 22:39:37 +08:00
Camila Ayres
30883785e4
Save the value of 'Launch on system startup' in the config files.
Make sure to migrate older configs to have the value set to true.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-01-22 11:35:55 +01:00
Camila Ayres
d677664f9d
Clean up logic when setting up auto start for user.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-01-22 11:28:00 +01:00
Camila
c4095d698a
Autostart does not depend on how many accounts are configured.
Set autostart default to true.

Signed-off-by: Camila <hello@camila.codes>
2024-01-22 11:27:58 +01:00