Выпуск WDTT Plus v15

This commit is contained in:
Ivan4537 committed 2026-08-21 22:21:42 +03:00
1 parent 3d2c277b06
commit 947551c176
65 files changed
+12788 -1338

No files matched your search

@@ -82,13 +82,16 @@ internal fun displayedTunnelProfile(
internal fun shouldUseManagedConfigFirstStart(
remoteManaged: Boolean,
profileMaxWorkers: Int,
): Boolean = remoteManaged && profileMaxWorkers == TUNNEL_WORKERS_PER_GROUP
): Boolean = remoteManaged &&
profileMaxWorkers in TUNNEL_WORKERS_PER_GROUP..APP_MAX_WORKERS &&
profileMaxWorkers % TUNNEL_WORKERS_PER_GROUP == 0
suspend fun buildTunnelParamsFromSettings(
context: Context,
profileIndex: Int? = null,
): TunnelParams? {
val store = SettingsStore(context.applicationContext)
store.reconcileRemoteProfileWorkerLimit(profileIndex)
val saved = store.tunnelProfileSnapshot(profileIndex)
return buildTunnelParams(saved)
}