Skip to content

Commit 00eca7c

Browse files
committed
Implement the open file menu bar action
1 parent 14cc931 commit 00eca7c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/app/main.qml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ ApplicationWindow {
2020
menuBar: CustomMenuBar {
2121
width: root.width
2222
model: AppMenuBar.model
23+
24+
Connections {
25+
target: AppMenuBar
26+
27+
function onFileOpened(fileName) {
28+
urlField.text = fileName;
29+
player.fileName = fileName;
30+
}
31+
}
2332
}
2433

2534
ColumnLayout {

0 commit comments

Comments
 (0)