mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 07:23:39 +02:00
CR
This commit is contained in:
parent
63571a7c36
commit
a6ccfb1685
3 changed files with 8 additions and 8 deletions
|
@ -91,8 +91,8 @@ void AssetMappingsScriptingInterface::uploadFile(QString path, QString mapping,
|
||||||
|
|
||||||
// Check for override
|
// Check for override
|
||||||
if (isKnownMapping(mapping)) {
|
if (isKnownMapping(mapping)) {
|
||||||
auto message = "The following file already exists:\n" + path + "\nDo you want to override it?";
|
auto message = path + "\n" + "This file already exists. Do you want to overwrite it?";
|
||||||
auto button = offscreenUi->messageBox(OffscreenUi::ICON_QUESTION, "", message,
|
auto button = offscreenUi->messageBox(OffscreenUi::ICON_QUESTION, "Overwrite File", message,
|
||||||
QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
|
QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
|
||||||
if (button == QMessageBox::No) {
|
if (button == QMessageBox::No) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -59,13 +59,13 @@ public:
|
||||||
|
|
||||||
Q_INVOKABLE QString getErrorString(int errorCode) const;
|
Q_INVOKABLE QString getErrorString(int errorCode) const;
|
||||||
|
|
||||||
Q_INVOKABLE void setMapping(QString path, QString hash, QJSValue callback);
|
Q_INVOKABLE void setMapping(QString path, QString hash, QJSValue callback = QJSValue());
|
||||||
Q_INVOKABLE void getMapping(QString path, QJSValue callback);
|
Q_INVOKABLE void getMapping(QString path, QJSValue callback = QJSValue());
|
||||||
Q_INVOKABLE void uploadFile(QString path, QString mapping, QJSValue callback = QJSValue());
|
Q_INVOKABLE void uploadFile(QString path, QString mapping, QJSValue callback = QJSValue());
|
||||||
Q_INVOKABLE void deleteMappings(QStringList paths, QJSValue callback);
|
Q_INVOKABLE void deleteMappings(QStringList paths, QJSValue callback);
|
||||||
Q_INVOKABLE void deleteMapping(QString path, QJSValue callback) { deleteMappings(QStringList(path), callback); }
|
Q_INVOKABLE void deleteMapping(QString path, QJSValue callback) { deleteMappings(QStringList(path), callback = QJSValue()); }
|
||||||
Q_INVOKABLE void getAllMappings(QJSValue callback);
|
Q_INVOKABLE void getAllMappings(QJSValue callback = QJSValue());
|
||||||
Q_INVOKABLE void renameMapping(QString oldPath, QString newPath, QJSValue callback);
|
Q_INVOKABLE void renameMapping(QString oldPath, QString newPath, QJSValue callback = QJSValue());
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QSet<AssetRequest*> _pendingRequests;
|
QSet<AssetRequest*> _pendingRequests;
|
||||||
|
|
Loading…
Reference in a new issue