fix: DoH auto-opening on startup

This commit is contained in:
ThaUnknown 2025-09-14 09:54:33 +02:00
parent 12eb271873
commit 700fabd970
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.4.140",
"version": "6.4.141",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.15.5",

View file

@ -4,6 +4,8 @@ import { persisted } from 'svelte-persisted-store'
import native from '../native'
import SUPPORTS from './supports'
import { defaults } from '.'
const _debug = Debug('ui:settings')
@ -63,5 +65,9 @@ uiScale.subscribe(native.setZoom)
showDetailsInRPC.subscribe(native.toggleDiscordDetails)
angle.subscribe(native.setAngle)
dohSettings.subscribe(({ enableDoH, doHURL }) => {
native.setDOH(enableDoH ? doHURL : '')
if (SUPPORTS.isAndroid) {
if (enableDoH) native.setDOH('')
} else {
native.setDOH(enableDoH ? doHURL : '')
}
})