🎉 adding a downloaded video from youtube

This commit is contained in:
Chris Cochrun 2023-05-18 15:56:12 -05:00
parent 2a71b8d750
commit 41e22ca133
2 changed files with 18 additions and 3 deletions

View file

@ -49,7 +49,7 @@ Kirigami.OverlaySheet {
Item {
id: centerItem
Layout.preferredHeight: Kirigami.Units.gridUnit * 25
Layout.preferredHeight: Kirigami.Units.gridUnit * 30
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
visible: true
@ -119,7 +119,11 @@ Kirigami.OverlaySheet {
Controls.Button {
anchors.right: parent.right
text: "Ok"
onClicked: { clear(); root.close();}
onClicked: {
videoProxyModel.videoModel.newItem(ytdl.file);
clear();
root.close();
}
}
}
}