From 5d965dd10c4195f1696a5cfefa6b6655161c1a27 Mon Sep 17 00:00:00 2001 From: Yannik Sander Date: Fri, 31 Dec 2021 15:34:51 +0100 Subject: [PATCH] Be more strict about model changes (#406) --- src/Main.elm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Main.elm b/src/Main.elm index 6a21421..e9508cf 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -191,17 +191,17 @@ pageMatch m1 m2 = ( Home _, Home _ ) -> True - ( Packages _, Packages _ ) -> - True + ( Packages model_a, Packages model_b ) -> + {model_a | show = Nothing } == {model_b | show = Nothing} - ( Options _, Options _ ) -> - True + ( Options model_a, Options model_b ) -> + {model_a | show = Nothing } == {model_b | show = Nothing} - ( Flakes (OptionModel _), Flakes (OptionModel _) ) -> - True + ( Flakes (OptionModel model_a), Flakes (OptionModel model_b) ) -> + {model_a | show = Nothing } == {model_b | show = Nothing} - ( Flakes (PackagesModel _), Flakes (PackagesModel _) ) -> - True + ( Flakes (PackagesModel model_a), Flakes (PackagesModel model_b) ) -> + {model_a | show = Nothing } == {model_b | show = Nothing} _ -> False