Skip to content

Commit 2ce356e

Browse files
committed
Update scratchcpp-render to v0.5.0
1 parent 4df27a6 commit 2ce356e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/qml/main.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ApplicationWindow {
3030

3131
function onFileOpened(fileName) {
3232
urlField.text = fileName;
33-
player.fileName = fileName;
33+
player.load(fileName);
3434
}
3535

3636
function onFps60ModeChanged() {
@@ -128,7 +128,7 @@ ApplicationWindow {
128128

129129
CustomToolButton {
130130
text: qsTr("Load")
131-
onClicked: player.fileName = urlField.text
131+
onClicked: player.load(urlField.text)
132132
}
133133
}
134134

0 commit comments

Comments
 (0)