forked from qt-creator/qt-creator
Improve plugin install wizard on macOS
Downloaded files get a quarantine flag on macOS, which prevents loading them as a plugin in Qt Creator. Remove the quarantine flag when copying the plugin. Change-Id: I3edef3ddfbab299be750e728a9fac0536634ba1b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -168,13 +168,15 @@ public:
|
||||
class QTCREATOR_UTILS_EXPORT CopyAskingForOverwrite
|
||||
{
|
||||
public:
|
||||
CopyAskingForOverwrite(QWidget *dialogParent);
|
||||
CopyAskingForOverwrite(QWidget *dialogParent,
|
||||
const std::function<void(QFileInfo)> &postOperation = {});
|
||||
bool operator()(const QFileInfo &src, const QFileInfo &dest, QString *error);
|
||||
QStringList files() const;
|
||||
|
||||
private:
|
||||
QWidget *m_parent;
|
||||
QStringList m_files;
|
||||
std::function<void(QFileInfo)> m_postOperation;
|
||||
bool m_overwriteAll = false;
|
||||
bool m_skipAll = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user