浏览代码

Update build.md

MoeClub 3 年之前
父节点
当前提交
cb0b0a1510
共有 1 个文件被更改,包括 21 次插入0 次删除
  1. 21 0
      qBittorrent/build.md

+ 21 - 0
qBittorrent/build.md

@@ -68,3 +68,24 @@ pack.set_bool(lt::settings_pack::smooth_connects, false);
 pack.set_int(lt::settings_pack::connection_speed, 512);
 
 ```
+
+# webui
+```
+client.js
+    // After showing/hiding the toolbar + status bar
+    let showSearchEngine = false;
+    if (LocalPreferences.get('show_search_engine') !== null)
+        showSearchEngine = LocalPreferences.get('show_search_engine') == "true";
+    let showRssReader = false;
+    if (LocalPreferences.get('show_rss_reader') !== null)
+        showRssReader = LocalPreferences.get('show_rss_reader') == "true";
+
+download.js
+                $('dlLimitText').value = pref.alt_dl_limit <= 0 ? "" : pref.alt_dl_limit / 1024;
+                $('upLimitText').value = pref.alt_up_limit <= 0 ? "" : pref.alt_up_limit / 1024;
+
+upload.html
+                <input type="checkbox" id="firstLastPiecePrio" name="firstLastPiecePrio" value="true" checked />
+      
+
+```