From 9a1ab0a7eeeb484ea149d3c63e71207c924857e1 Mon Sep 17 00:00:00 2001 From: borgbyte Date: Thu, 23 Mar 2023 10:52:06 +0000 Subject: [PATCH] ui: avoid continuous changes to proxy settings --- qml/PreferencesView.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/qml/PreferencesView.qml b/qml/PreferencesView.qml index e1d610f00..df4c6b94c 100644 --- a/qml/PreferencesView.qml +++ b/qml/PreferencesView.qml @@ -188,7 +188,10 @@ MainPage { Layout.fillWidth: true enabled: Settings.useProxy text: Settings.proxyHost - onTextChanged: Settings.proxyHost = text + onEditingFinished: { + console.log('update proxy host', text) + Settings.proxyHost = text + } } } Field { @@ -197,7 +200,10 @@ MainPage { GTextField { enabled: Settings.useProxy text: Settings.proxyPort - onTextChanged: Settings.proxyPort = text + onEditingFinished: { + console.log('update proxy port', text) + Settings.proxyPort = text + } } } Field {