Be more strict about model changes (#406)
This commit is contained in:
parent
477ef70b06
commit
5d965dd10c
16
src/Main.elm
16
src/Main.elm
|
@ -191,17 +191,17 @@ pageMatch m1 m2 =
|
||||||
( Home _, Home _ ) ->
|
( Home _, Home _ ) ->
|
||||||
True
|
True
|
||||||
|
|
||||||
( Packages _, Packages _ ) ->
|
( Packages model_a, Packages model_b ) ->
|
||||||
True
|
{model_a | show = Nothing } == {model_b | show = Nothing}
|
||||||
|
|
||||||
( Options _, Options _ ) ->
|
( Options model_a, Options model_b ) ->
|
||||||
True
|
{model_a | show = Nothing } == {model_b | show = Nothing}
|
||||||
|
|
||||||
( Flakes (OptionModel _), Flakes (OptionModel _) ) ->
|
( Flakes (OptionModel model_a), Flakes (OptionModel model_b) ) ->
|
||||||
True
|
{model_a | show = Nothing } == {model_b | show = Nothing}
|
||||||
|
|
||||||
( Flakes (PackagesModel _), Flakes (PackagesModel _) ) ->
|
( Flakes (PackagesModel model_a), Flakes (PackagesModel model_b) ) ->
|
||||||
True
|
{model_a | show = Nothing } == {model_b | show = Nothing}
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
False
|
False
|
||||||
|
|
Loading…
Reference in a new issue