mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 23:17:13 +03:00
shell_i: Don't load the old extension in >= 10.10 #2340
This commit is contained in:
parent
52f64358c7
commit
977b1464b5
1 changed files with 25 additions and 21 deletions
|
@ -107,6 +107,9 @@ ownCloudGui::ownCloudGui(Application *parent) :
|
|||
void ownCloudGui::setupOverlayIcons()
|
||||
{
|
||||
#ifdef Q_OS_MAC
|
||||
// Make sure that we only send the load event to the legacy plugin when
|
||||
// using OS X <= 10.9 since 10.10 starts using the new FinderSync one.
|
||||
if (QSysInfo::MacintoshVersion < QSysInfo::MV_10_10) {
|
||||
const QLatin1String finderExtension("/Library/ScriptingAdditions/SyncStateFinder.osax");
|
||||
if (QFile::exists(finderExtension)) {
|
||||
QString aScript = QString::fromUtf8("tell application \"Finder\"\n"
|
||||
|
@ -131,6 +134,7 @@ void ownCloudGui::setupOverlayIcons()
|
|||
} else {
|
||||
qDebug() << finderExtension << "does not exist! Finder Overlay Plugin loading failed";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue