aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI
diff options
context:
space:
mode:
Diffstat (limited to 'WireGuard/WireGuard/UI')
-rw-r--r--WireGuard/WireGuard/UI/TunnelViewModel.swift4
1 files changed, 3 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/TunnelViewModel.swift b/WireGuard/WireGuard/UI/TunnelViewModel.swift
index fcbaef3b..39d55bed 100644
--- a/WireGuard/WireGuard/UI/TunnelViewModel.swift
+++ b/WireGuard/WireGuard/UI/TunnelViewModel.swift
@@ -462,7 +462,9 @@ class TunnelViewModel {
}
}
scratchpad = otherScratchPad
- changeHandler(peerIndex, changes)
+ if !changes.isEmpty {
+ changeHandler(peerIndex, changes)
+ }
}
}