[qml] In the default (sample) slideshow, activate key shortcuts
- with V2 loading, the key shortcuts should be enabled when the slideshow itself is activated, not when it is loaded.
This commit is contained in:
parent
34cb777b0a
commit
0a9d0ddf68
@ -25,7 +25,7 @@ Presentation
|
||||
id: presentation
|
||||
|
||||
function nextSlide() {
|
||||
console.log("Next slide");
|
||||
console.log("QML Component (default slideshow) Next slide");
|
||||
presentation.goToNextSlide();
|
||||
}
|
||||
|
||||
@ -70,7 +70,13 @@ Presentation
|
||||
|
||||
function onActivate() {
|
||||
presentation.currentSlide = 0;
|
||||
advanceTimer.running = true
|
||||
presentation.activatedInCalamares = true;
|
||||
advanceTimer.running = true;
|
||||
console.log("QML Component (default slideshow) activated");
|
||||
}
|
||||
|
||||
function onLeave() {
|
||||
presentation.activatedInCalamares = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,6 +8,9 @@
|
||||
* (this and the 'c' key make sense in a *presentation*
|
||||
* slideshow, not in a passive slideshow like Calamares)
|
||||
* - remove quit key
|
||||
* Copyright 2019, Adriaan de Groot <groot@kde.org>
|
||||
* - Support "V2" loading
|
||||
* - Disable shortcuts until the content is visible in Calamares
|
||||
*
|
||||
* SPDX-License-Identifier: LGPL-2.1
|
||||
* License-Filename: LICENSES/LGPLv2.1-Presentation
|
||||
|
Loading…
Reference in New Issue
Block a user