Added loop property to Presentation in calamares.slideshow QML module.
This commit is contained in:
parent
3c6cfd5bd2
commit
d0608ada90
@ -51,6 +51,7 @@ Item {
|
||||
|
||||
property bool showNotes: false;
|
||||
property bool allowDelay: true;
|
||||
property bool loop: true;
|
||||
|
||||
property color titleColor: textColor;
|
||||
property color textColor: "black"
|
||||
@ -103,6 +104,16 @@ Item {
|
||||
root.focus = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (root.loop) {
|
||||
var from = slides[currentSlide]
|
||||
var to = slides[0]
|
||||
if (switchSlides(from, to, true)) {
|
||||
currentSlide = 0;
|
||||
root.focus = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function goToPreviousSlide() {
|
||||
|
Loading…
Reference in New Issue
Block a user