From c432909f40bd24bcc5c9d9dcf9f235029b0dea9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Pantale=C3=A3o=20Gon=C3=A7alves?= <5808343+bgoncal@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:15:27 +0100 Subject: [PATCH] Hide 'no active URL' message after 15 seconds (#3249) ## Summary ## Screenshots ## Link to pull request in Documentation repository Documentation: home-assistant/companion.home-assistant# ## Any other notes --- Sources/App/WebView/WebViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/App/WebView/WebViewController.swift b/Sources/App/WebView/WebViewController.swift index 63b7f719a..00a8381fc 100644 --- a/Sources/App/WebView/WebViewController.swift +++ b/Sources/App/WebView/WebViewController.swift @@ -601,7 +601,8 @@ final class WebViewController: UIViewController, WKNavigationDelegate, WKUIDeleg private func showNoActiveURLError() { Current.Log.info("Showing noActiveURLError") - let config = swiftMessagesConfig() + var config = swiftMessagesConfig() + config.duration = .seconds(seconds: 15) let view = MessageView.viewFromNib(layout: .messageView) view.configureContent( title: L10n.Network.Error.NoActiveUrl.title,