mirror of
https://github.com/wgtunnel/android.git
synced 2026-07-03 14:07:49 +02:00
fix: bug where split tunnel settings overwrote tunnel name comment
This commit is contained in:
+3
-1
@@ -88,7 +88,9 @@ class SplitTunnelViewModel(
|
||||
editableInterface.copy(includedApplications = included, excludedApplications = excluded)
|
||||
val updatedProxyConfig = editableConfig.copy(`interface` = updatedInterface)
|
||||
val updatedConfig = updatedProxyConfig.buildConfig()
|
||||
tunnelRepository.save(tunnel.copy(quickConfig = updatedConfig.asQuickString()))
|
||||
tunnelRepository.save(
|
||||
tunnel.copy(quickConfig = updatedConfig.withName(tunnel.name).asQuickString())
|
||||
)
|
||||
postSideEffect(
|
||||
GlobalSideEffect.Snackbar(StringValue.StringResource(R.string.config_changes_saved))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user