Skip to content

Commit

Permalink
ui: avoid continuous changes to proxy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
borgbyte committed Mar 23, 2023
1 parent a6ed671 commit 9a1ab0a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions qml/PreferencesView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 9a1ab0a

Please sign in to comment.