mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-17 04:31:27 +08:00
Add debug messages
This commit is contained in:
@@ -257,6 +257,8 @@ bool QmlUtils::saveToFile(const QVariant &value, const QString &path) {
|
||||
outStream.writeRawData(val, val.size());
|
||||
outputFile.close();
|
||||
return true;
|
||||
} else {
|
||||
qDebug() << "Cannot get access to file " << path;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.13
|
||||
import Qt.labs.platform 1.1
|
||||
import QtQuick.Dialogs 1.3
|
||||
import QtQuick.Layouts 1.15
|
||||
import "./platformutils.js" as PlatformUtils
|
||||
|
||||
ImageButton {
|
||||
@@ -31,6 +31,8 @@ ImageButton {
|
||||
onAccepted: {
|
||||
root.fileUrl = fileUrl
|
||||
|
||||
console.log(fileUrl)
|
||||
|
||||
var path = qmlUtils.getPathFromUrl(fileUrl)
|
||||
root.folderUrl = qmlUtils.getUrlFromPath(qmlUtils.getDir(path))
|
||||
root.path = qmlUtils.getNativePath(path)
|
||||
|
||||
Reference in New Issue
Block a user