1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 10:42:29 +01:00

Fix import and export of wallpaper

This commit is contained in:
Elias Steurer 2024-01-04 14:30:56 +01:00
parent a17e7f0e78
commit 1a4a14ae8a

View File

@ -353,8 +353,10 @@ Item {
modalSource: root.modalSource
closePolicy: Popup.NoAutoClose
onOpened: {
const success = App.util.exportProject(exportFileDialog.absoluteStoragePath, exportFileDialog.currentFile);
const success = archive.exportProject(exportFileDialog.absoluteStoragePath, exportFileDialog.currentFile);
}
onClosed: exportProgressBar.value = 0
ColumnLayout {
width: parent.width
@ -376,7 +378,7 @@ Item {
}
Connections {
id: exportConnections
target: App.util
target: archive
function onCompressionProgressChanged(file, proc, total, br, bt) {
exportProgressBar.value = (br * 100 / bt);
}
@ -396,6 +398,10 @@ Item {
}
}
Util.Archive {
id:archive
}
DropArea {
id: dropArea
anchors.fill: parent
@ -444,7 +450,7 @@ Item {
closePolicy: Popup.NoAutoClose
onClosed: importProgressBar.value = 0
onOpened: {
const success = App.util.importProject(dropArea.filePath, App.globalVariables.localStoragePath);
const success = archive.importProject(dropArea.filePath, App.globalVariables.localStoragePath);
print("finished", success);
dropArea.filePath = "";
}
@ -466,7 +472,7 @@ Item {
}
Connections {
id: importConnections
target: App.util
target: archive
function onExtractionProgressChanged(file, proc, total, br, bt) {
importProgressBar.value = (br * 100 / bt);
}