From cb6d770b92ceae3809fc96b34cd4cea73c4cdcb2 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 22 Nov 2025 19:35:23 -0600 Subject: [PATCH] Restore the tooltip timeout-based hiding The fade-out animation doesn't run on Linux when the window is hidden, so the tooltips will reappear and fade on the app grid which is ugly. --- app/gui/StreamSegue.qml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/gui/StreamSegue.qml b/app/gui/StreamSegue.qml index f95b7e3d..320f02a4 100644 --- a/app/gui/StreamSegue.qml +++ b/app/gui/StreamSegue.qml @@ -186,21 +186,18 @@ Item { var text = session.launchWarnings[i] console.warn(text) - // Show the tooltip + // Show the tooltip for 3 seconds var toast = Qt.createQmlObject('import QtQuick.Controls 2.2; ToolTip {}', parent, '') + toast.timeout = 3000 toast.text = text toast.y += yOffset toast.visible = true - // Hide the tooltip when the connection starts or fails - session.connectionStarted.connect(toast.hide) - session.sessionFinished.connect(toast.hide) - // Offset the next toast below the previous one yOffset = toast.y + toast.padding + toast.height - // Allow the user 3.5 seconds to read the tooltip(s) - startSessionTimer.interval = 3500; + // Allow an extra 500 ms for the tooltip's fade-out animation to finish + startSessionTimer.interval = toast.timeout + 500; } // Start the timer to wait for toasts (or start the session immediately)