mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Wallpaper: temp debug log
This commit is contained in:
@@ -106,6 +106,7 @@ Variants {
|
||||
running: false
|
||||
repeat: false
|
||||
onTriggered: {
|
||||
Logger.i("Background", "[TRANSITION] debounceTimer triggered, calling changeWallpaper");
|
||||
changeWallpaper();
|
||||
}
|
||||
}
|
||||
@@ -289,7 +290,14 @@ Variants {
|
||||
// The stripes shader feels faster visually, we make it a bit slower here.
|
||||
duration: transitionType == "stripes" ? Settings.data.wallpaper.transitionDuration * 1.6 : Settings.data.wallpaper.transitionDuration
|
||||
easing.type: Easing.InOutCubic
|
||||
onStarted: {
|
||||
Logger.i("Background", "[TRANSITION] Animation STARTED, duration:", duration);
|
||||
}
|
||||
onStopped: {
|
||||
Logger.i("Background", "[TRANSITION] Animation STOPPED at progress:", root.transitionProgress);
|
||||
}
|
||||
onFinished: {
|
||||
Logger.i("Background", "[TRANSITION] Animation FINISHED normally");
|
||||
// Assign new image to current BEFORE clearing to prevent flicker
|
||||
const tempSource = nextWallpaper.source;
|
||||
currentWallpaper.source = tempSource;
|
||||
@@ -368,11 +376,26 @@ Variants {
|
||||
|
||||
// ------------------------------------------------------
|
||||
function setWallpaperWithTransition(source) {
|
||||
Logger.i("Background", "[TRANSITION] setWallpaperWithTransition called");
|
||||
Logger.i("Background", " source:", source);
|
||||
Logger.i("Background", " currentWallpaper.source:", currentWallpaper.source);
|
||||
Logger.i("Background", " nextWallpaper.source:", nextWallpaper.source);
|
||||
Logger.i("Background", " transitioning:", transitioning);
|
||||
Logger.i("Background", " transitionProgress:", transitionProgress);
|
||||
|
||||
if (source === currentWallpaper.source) {
|
||||
Logger.i("Background", " -> SKIP: same as current");
|
||||
return;
|
||||
}
|
||||
|
||||
// If we're already transitioning to this same wallpaper, skip
|
||||
if (transitioning && source === nextWallpaper.source) {
|
||||
Logger.i("Background", " -> SKIP: already transitioning to this wallpaper");
|
||||
return;
|
||||
}
|
||||
|
||||
if (transitioning) {
|
||||
Logger.i("Background", " -> INTERRUPTING existing transition");
|
||||
// We are interrupting a transition - handle cleanup properly
|
||||
transitionAnimation.stop();
|
||||
transitionProgress = 0;
|
||||
|
||||
Reference in New Issue
Block a user