From: Michael Schuster Date: Mon, 9 Dec 2019 20:00:34 +0000 (+0100) Subject: macOS: Rename 'Explorer' appropriately on non-Windows X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~493 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b754eacd7429352174b858d659efb607db20f3dc;p=nextcloud-desktop.git macOS: Rename 'Explorer' appropriately on non-Windows - Rename it to 'Finder' on macOS. - This way we also avoid having the whole string re-translated on Transifex. Signed-off-by: Michael Schuster --- diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index c2d5873af..632ae43f8 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -57,6 +57,13 @@ GeneralSettings::GeneralSettings(QWidget *parent) connect(_ui->showInExplorerNavigationPaneCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::slotShowInExplorerNavigationPane); + // Rename 'Explorer' appropriately on non-Windows +#ifdef Q_OS_MAC + QString txt = _ui->showInExplorerNavigationPaneCheckBox->text(); + txt.replace(QString::fromLatin1("Explorer"), QString::fromLatin1("Finder")); + _ui->showInExplorerNavigationPaneCheckBox->setText(txt); +#endif + _ui->autostartCheckBox->setChecked(Utility::hasLaunchOnStartup(Theme::instance()->appName())); connect(_ui->autostartCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::slotToggleLaunchOnStartup);