using video_model.rs and presentation_model.rs

These are hopefully a better alternative than the cpp counterparts
after some more time
This commit is contained in:
Chris Cochrun 2023-04-16 15:09:09 -05:00
parent 020e812bce
commit 9d05a7e655
8 changed files with 75 additions and 28 deletions

View file

@ -65,7 +65,7 @@ Item {
itemIcon: "folder-videos-symbolic"
itemSubtitle: {
if (fileValidation)
model.filePath;
model.path;
else
"file is missing"
}

View file

@ -70,7 +70,7 @@ ColumnLayout {
anchors {left: libraryLabel.right
verticalCenter: libraryLabel.verticalCenter
leftMargin: 15}
text: innerModel.rowCount()
text: libraryType == "song" ? innerModel.rowCount() : innerModel.count()
color: Kirigami.Theme.disabledTextColor
}

View file

@ -266,7 +266,7 @@ Item {
function updateLoop(value) {
/* changeStartTime(value, false); */
videosqlmodel.updateLoop(video.id, value);
video.loop = value;
/* video.loop = value; */
showPassiveNotification("Loop changed to: " + video.loop);
}