From 71675c7b18185bfcea45f9ed0e8986cbd42e5cf8 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 20 Nov 2022 14:49:50 +0100 Subject: [PATCH] =?UTF-8?q?Make=20"Select=20directory=20=E2=80=A6"=20butto?= =?UTF-8?q?n=20a=20WIP=20feature=20as=20it=20is=20broken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Not sure yet whether it is worthwhile fixing this hack as it might break again if Syncthing changes something in the official UI * See https://github.com/Martchus/syncthingtray/issues/165 --- widgets/webview/webpage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/widgets/webview/webpage.cpp b/widgets/webview/webpage.cpp index c744450..1ba40ad 100644 --- a/widgets/webview/webpage.cpp +++ b/widgets/webview/webpage.cpp @@ -317,6 +317,9 @@ void WebPage::injectJavaScripts(bool ok) { Q_UNUSED(ok) // show folder path selection when double-clicking input + if (!Settings::values().enableWipFeatures) { + return; + } injectJavaScript(QStringLiteral("var button = jQuery('');" "button.click(function(event) {"