mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 00:48:22 -04:00
Added loop property to Presentation in calamares.slideshow QML module.
This commit is contained in:
parent
3c6cfd5bd2
commit
d0608ada90
1 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue