From 9de7258a7b27e3bcf8af52c560e7fa24611a07a6 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Wed, 10 Apr 2024 10:34:37 +0200 Subject: [PATCH] fixup: Ensure consistent state --- mullvad-types/src/access_method.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/mullvad-types/src/access_method.rs b/mullvad-types/src/access_method.rs index de788bfe1985..1ea91f3973a7 100644 --- a/mullvad-types/src/access_method.rs +++ b/mullvad-types/src/access_method.rs @@ -77,6 +77,7 @@ impl Settings { /// Clear all custom access methods. pub fn clear_custom(&mut self) { self.custom.clear(); + self.ensure_consistent_state(); } /// Check that `self` contains atleast one enabled access methods. If not,