From 60b23efe8e571d8d80cf77ef9e64cd4fee27c864 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Wed, 2 Feb 2022 12:31:54 +0100 Subject: [ui] disable snowflake progress --- gui/components/StatusBox.qml | 2 +- gui/components/VPNState.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/components/StatusBox.qml b/gui/components/StatusBox.qml index 5929033..6eaf2d4 100644 --- a/gui/components/StatusBox.qml +++ b/gui/components/StatusBox.qml @@ -181,6 +181,6 @@ Item { } function isSnowflakeOn() { - return ctx != undefined && ctx.snowflakeProgress != "" && ctx.snowflakeProgress != "100" + return ctx != undefined && ctx.snowflake == "true" && ctx.snowflakeProgress != "100" } } diff --git a/gui/components/VPNState.qml b/gui/components/VPNState.qml index 3a8d49a..3e9e7dd 100644 --- a/gui/components/VPNState.qml +++ b/gui/components/VPNState.qml @@ -20,7 +20,7 @@ StateGroup { name: initializing }, State { - when: ctx != undefined && ctx.snowflakeProgress != "" && ctx.snowflakeProgress != "100" + when: ctx != undefined && ctx.snowflakeProgress != "0" && ctx.snowflakeProgress != "100" // TODO animate image PropertyChanges { target: connectionState -- cgit v1.2.3