Add General.proxy setting, supports HTTP & SOCKS5

This commit is contained in:
miruka
2021-03-02 12:11:54 -04:00
parent b0d31af3c0
commit f6f0a0c1ee
5 changed files with 44 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
import QtQuick 2.12
import CppUtils 0.1
import "."
PythonBridge {
@@ -22,6 +23,8 @@ PythonBridge {
importNames("backend.qml_bridge", ["BRIDGE"], () => {
callCoro("get_settings", [], ([settings, state, hist, theme, themeRules]) => {
CppUtils.setProxy(settings.General.proxy || "")
window.settings = settings
window.uiState = state
window.history = hist