mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
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 <michael@schuster.ms>
This commit is contained in:
parent
7ce8a6a201
commit
b754eacd74
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user