Make "Select directory …" button a WIP feature as it is broken

* 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
This commit is contained in:
Martchus 2022-11-20 14:49:50 +01:00
parent a30f3d4062
commit 71675c7b18
1 changed files with 3 additions and 0 deletions

View File

@ -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 type=\"button\" class=\"btn btn-sm\" "
"style=\"float: right;\">Select directory …</button>');"
"button.click(function(event) {"