TunnelViewModel: Don't call peer change handler if there are no changes
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -462,9 +462,11 @@ class TunnelViewModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
scratchpad = otherScratchPad
|
scratchpad = otherScratchPad
|
||||||
|
if !changes.isEmpty {
|
||||||
changeHandler(peerIndex, changes)
|
changeHandler(peerIndex, changes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
enum SaveResult<Configuration> {
|
enum SaveResult<Configuration> {
|
||||||
case saved(Configuration)
|
case saved(Configuration)
|
||||||
|
|||||||
Reference in New Issue
Block a user