From b754eacd7429352174b858d659efb607db20f3dc Mon Sep 17 00:00:00 2001 From: Michael Schuster Date: Mon, 9 Dec 2019 21:00:34 +0100 Subject: [PATCH] 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 --- src/gui/generalsettings.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index c2d5873afe..632ae43f83 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);