From 3f339b7bb92d0a115b95c004b94f695adb94d0ae Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 2 Sep 2020 15:56:13 -0400 Subject: [PATCH] Add global baseGIFSpeed property to DebugConsole for great debugging --- src/gui/Base/HImage.qml | 2 +- src/gui/DebugConsole.qml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/Base/HImage.qml b/src/gui/Base/HImage.qml index 65c3c27b..7aab0f87 100644 --- a/src/gui/Base/HImage.qml +++ b/src/gui/Base/HImage.qml @@ -74,7 +74,7 @@ Image { // Online GIFs won't be able to loop if cache is set to false, // but caching GIFs is expansive. cache: ! Qt.resolvedUrl(source).startsWith("file://") - speed: image.speed + speed: window.mainUI.debugConsole.baseGIFSpeed * image.speed paused: ! visible || window.hidden || image.pause || image.forcePause diff --git a/src/gui/DebugConsole.qml b/src/gui/DebugConsole.qml index 89ceeb59..9f7db8cc 100644 --- a/src/gui/DebugConsole.qml +++ b/src/gui/DebugConsole.qml @@ -40,6 +40,7 @@ HDrawer { ) property bool doUselessThing: false + property real baseGIFSpeed: 1.0 readonly property alias commandsView: commandsView