bug: adding videos fixed
This commit is contained in:
parent
1dc08d212c
commit
bcfa587d85
1 changed files with 5 additions and 5 deletions
|
@ -86,7 +86,7 @@ Item {
|
||||||
headerLabel: "Images"
|
headerLabel: "Images"
|
||||||
itemIcon: "folder-pictures-symbolic"
|
itemIcon: "folder-pictures-symbolic"
|
||||||
/* itemSubtitle: model.path */
|
/* itemSubtitle: model.path */
|
||||||
count: imageProxyModel.imageModel.count()
|
count: innerModel.count()
|
||||||
newItemFunction: (function() {
|
newItemFunction: (function() {
|
||||||
imageProxyModel.setFilterRegularExpression("");
|
imageProxyModel.setFilterRegularExpression("");
|
||||||
})
|
})
|
||||||
|
@ -276,11 +276,11 @@ Item {
|
||||||
onExited: overlay = false
|
onExited: overlay = false
|
||||||
|
|
||||||
function addVideo(url) {
|
function addVideo(url) {
|
||||||
videoProxyModel.videoModel.newVideo(url);
|
videoProxyModel.videoModel.newItem(url);
|
||||||
selectedLibrary = "video";
|
selectedLibrary = "video";
|
||||||
videoLibraryList.currentIndex = videoProxyModel.videoModel.rowCount();
|
videoLibrary.libraryList.currentIndex = videoProxyModel.videoModel.count();
|
||||||
console.log(videoProxyModel.videoModel.getVideo(videoLibraryList.currentIndex));
|
console.log(videoProxyModel.getVideo(videoLibrary.libraryList.currentIndex));
|
||||||
const video = videoProxyModel.videoModel.getVideo(videoLibraryList.currentIndex);
|
const video = videoProxyModel.getVideo(videoLibrary.libraryList.currentIndex);
|
||||||
showPassiveNotification("newest video: " + video.title);
|
showPassiveNotification("newest video: " + video.title);
|
||||||
if (!editMode)
|
if (!editMode)
|
||||||
editMode = true;
|
editMode = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue